summaryrefslogtreecommitdiffstats
path: root/.appveyor.yml
blob: a5b44461e81756d3678138566d1aa4d0ef9d652b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: 1.0.{build}
image: Visual Studio 2019
configuration:
- Debug
- Release
platform: Win32
environment:
  APPVEYOR_SAVE_CACHE_ON_ERROR: true
install:
- cmd: >-
    git submodule update --init --recursive

    premake-vs2019.cmd
build:
  project: build/re3.sln
  verbosity: minimal
after_build:
# downloading latest release of UAL to make release with UAL and ASI.
- ps: >-
    $releases = "https://github.com/ThirteenAG/Ultimate-ASI-Loader/releases"

    $name = "Ultimate-ASI-Loader.zip"

    $latestRelease = Invoke-WebRequest $releases/latest -Headers @{"Accept"="application/json"}

    $json = $latestRelease.Content | ConvertFrom-Json

    $latestVersion = $json.tag_name

    $url = "$releases/download/$latestVersion/$name"

    Start-FileDownload $url -FileName 'C:\Ultimate-ASI-Loader.zip'

    7z e c:\Ultimate-ASI-Loader.zip -oc:\Projects\re3\bin\${env:CONFIGURATION}

    cd "bin\${env:CONFIGURATION}"

    copy re3.dll re3.asi

    7z u "RE3_${env:CONFIGURATION}+UAL.zip" re3.asi dinput8.dll

    Get-ChildItem .\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
artifacts:
- path: bin/%CONFIGURATION%/re3.dll
  name: re3.dll