2023-03-23 19:49:48 +00:00
|
|
|
version: 1.62-{build}
|
2018-02-05 12:51:21 +00:00
|
|
|
|
2023-02-03 22:31:31 +00:00
|
|
|
image: Visual Studio 2022
|
2018-02-05 12:51:21 +00:00
|
|
|
|
|
|
|
environment:
|
|
|
|
matrix:
|
2023-02-03 22:31:31 +00:00
|
|
|
- generator: "Visual Studio 2022"
|
2018-02-05 12:51:21 +00:00
|
|
|
config: Release Unicode
|
|
|
|
platform: Win32
|
|
|
|
arch: win32
|
|
|
|
output: win32\snes9x.exe
|
2023-02-03 22:31:31 +00:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
|
2018-02-05 12:51:21 +00:00
|
|
|
|
2023-02-03 22:31:31 +00:00
|
|
|
- generator: "Visual Studio 2022"
|
2018-02-05 12:51:21 +00:00
|
|
|
config: Release Unicode
|
|
|
|
platform: x64
|
|
|
|
arch: win32-x64
|
|
|
|
output: win32\snes9x-x64.exe
|
2023-02-03 22:31:31 +00:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
|
2018-02-05 12:51:21 +00:00
|
|
|
|
2023-02-03 22:31:31 +00:00
|
|
|
- generator: "Visual Studio 2022"
|
2018-08-27 19:12:27 +00:00
|
|
|
config: libretro Release
|
|
|
|
platform: Win32
|
|
|
|
arch: libretro
|
|
|
|
output: libretro\Win32\libretro Release\snes9x_libretro.dll
|
2023-02-03 22:31:31 +00:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
|
2018-08-27 19:12:27 +00:00
|
|
|
|
2023-02-03 22:31:31 +00:00
|
|
|
- generator: "Visual Studio 2022"
|
2018-08-27 19:12:27 +00:00
|
|
|
config: libretro Release
|
|
|
|
platform: x64
|
|
|
|
arch: libretro-x64
|
|
|
|
output: libretro\x64\libretro Release\snes9x_libretro.dll
|
2023-02-03 22:31:31 +00:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
|
2018-08-27 19:12:27 +00:00
|
|
|
|
2018-02-05 12:51:21 +00:00
|
|
|
init:
|
|
|
|
- git config --global core.autocrlf input
|
|
|
|
|
|
|
|
before_build:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
|
|
|
|
build_script:
|
2018-08-27 19:12:27 +00:00
|
|
|
- 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"
|
2018-02-05 12:51:21 +00:00
|
|
|
|
|
|
|
after_build:
|
2020-02-18 08:11:56 +00:00
|
|
|
- ps: $env:my_version = "$env:APPVEYOR_BUILD_VERSION-$($env:APPVEYOR_REPO_COMMIT.substring(0,7))"
|
2018-02-05 12:51:21 +00:00
|
|
|
- set package_name=snes9x-%my_version%-%arch%
|
|
|
|
- if exist artifacts rmdir /s /q artifacts
|
|
|
|
- mkdir artifacts
|
|
|
|
- copy "%output%" artifacts
|
2018-08-27 19:12:27 +00:00
|
|
|
- if "%config%"=="Release Unicode"
|
|
|
|
copy docs\changes.txt artifacts |
|
2018-11-14 21:34:27 +00:00
|
|
|
copy LICENSE artifacts |
|
2018-08-27 19:12:27 +00:00
|
|
|
copy win32\docs\faqs-windows.txt artifacts |
|
2018-11-20 20:54:01 +00:00
|
|
|
copy win32\docs\readme-windows.txt artifacts |
|
|
|
|
copy data\cheats.bml artifacts
|
2018-02-05 12:51:21 +00:00
|
|
|
- 7z a %package_name%.zip .\artifacts\*
|
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: $(package_name).zip
|
|
|
|
name: $(arch)
|