-
Notifications
You must be signed in to change notification settings - Fork 464
/
appveyor.yml
61 lines (51 loc) · 1.97 KB
/
appveyor.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: 1.63-{build}
image: Visual Studio 2022
environment:
matrix:
- generator: "Visual Studio 2022"
config: Release Unicode
platform: Win32
arch: win32
output: win32\snes9x.exe
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
- generator: "Visual Studio 2022"
config: Release Unicode
platform: x64
arch: win32-x64
output: win32\snes9x-x64.exe
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
- generator: "Visual Studio 2022"
config: libretro Release
platform: Win32
arch: libretro
output: libretro\Win32\libretro Release\snes9x_libretro.dll
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
- generator: "Visual Studio 2022"
config: libretro Release
platform: x64
arch: libretro-x64
output: libretro\x64\libretro Release\snes9x_libretro.dll
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
init:
- git config --global core.autocrlf input
before_build:
- git submodule update --init --recursive
build_script:
- if "%config%"=="Release Unicode" msbuild win32\snes9xw.sln /t:build /p:Configuration="%config%";Platform="%platform%" /m /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- if "%config%"=="libretro Release" msbuild libretro\libretro-win32.vcxproj /t:build /p:Configuration="%config%";Platform="%platform%" /m /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build:
- ps: $env:my_version = "$env:APPVEYOR_BUILD_VERSION-$($env:APPVEYOR_REPO_COMMIT.substring(0,7))"
- set package_name=snes9x-%my_version%-%arch%
- if exist artifacts rmdir /s /q artifacts
- mkdir artifacts
- copy "%output%" artifacts
- if "%config%"=="Release Unicode"
copy docs\changes.txt artifacts |
copy LICENSE artifacts |
copy win32\docs\faqs-windows.txt artifacts |
copy win32\docs\readme-windows.txt artifacts |
copy data\cheats.bml artifacts
- 7z a %package_name%.zip .\artifacts\*
artifacts:
- path: $(package_name).zip
name: $(arch)