Added UWP to appveyor.yaml (#3959)

This commit is contained in:
Felipe Wannmacher 2022-01-17 21:50:22 -03:00 committed by GitHub
commit 1ca5e5681b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 56 additions and 39 deletions

2
.gitignore vendored
View file

@ -455,4 +455,4 @@ uwp-project/Assets/data
uwp-project/Assets/fonts
uwp-project/Assets/gendata
uwp-project/Assets/ui_art
!uwp-project/devilutionX_TemporaryKey.pfx

View file

@ -15,6 +15,4 @@ powershell "Get-Content ..\uwp-project\Package.appxmanifest.template | %% {$_ -r
msbuild /p:Configuration=Release;Platform=x64;AppxBundle=Always;AppxBundlePlatforms=x64 ..\uwp-project\devilutionx.sln
powershell "Get-Childitem -Path uwp-project\AppxPackages, uwp-project\Release -Include Microsoft.VCLibs.x64.*.appx, devilutionX_*_x64.appx -File -Recurse | Copy-Item -Destination ..\Packaging\xbox-one"
cd ..\Packaging\xbox-one
powershell "Get-Childitem -Path uwp-project\AppxPackages, uwp-project\Release -Include Microsoft.VCLibs.x64.*.appx, devilutionX_*_x64.appx -File -Recurse | Compress-Archive -DestinationPath ..\devilutionx.zip"

View file

@ -1,16 +0,0 @@
version: 1.0.{build}
pull_requests:
do_not_increment_build_number: true
image: Visual Studio 2022
before_build:
- cd %APPVEYOR_BUILD_FOLDER%\Packaging\xbox-one
build_script:
- build.bat
artifacts:
- path: .
name: devilutionX_*_x64.appx
- path: .
name: Microsoft.VCLibs.x64.*.appx

View file

@ -2,21 +2,56 @@ version: 1.0.{build}
pull_requests:
do_not_increment_build_number: true
image: Visual Studio 2022
cache: '%LOCALAPPDATA%\vcpkg\archives'
environment:
matrix:
install:
- cd C:\Tools\vcpkg
- git pull
- .\bootstrap-vcpkg.bat
- cd %APPVEYOR_BUILD_FOLDER%
- job_name: windows
appveyor_build_worker_image: Visual Studio 2022
before_build:
- cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake .
- job_name: uwp
appveyor_build_worker_image: Visual Studio 2022
build:
project: $(APPVEYOR_BUILD_FOLDER)\$(APPVEYOR_PROJECT_NAME).sln
verbosity: minimal
artifacts:
- path: Debug\devilutionx.exe
name: devilutionx.exe
for:
-
matrix:
only:
- job_name: windows
cache: '%LOCALAPPDATA%\vcpkg\archives'
install:
- if not exist C:\Tools\vcpkg mkdir C:\Tools\vcpkg
- cd C:\Tools\vcpkg
- git pull
- .\bootstrap-vcpkg.bat
- cd %APPVEYOR_BUILD_FOLDER%
before_build:
- cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake .
build:
project: $(APPVEYOR_BUILD_FOLDER)\$(APPVEYOR_PROJECT_NAME).sln
verbosity: minimal
artifacts:
- path: Debug\devilutionx.exe
name: devilutionx.exe
-
matrix:
only:
- job_name: uwp
before_build:
- cd %APPVEYOR_BUILD_FOLDER%\Packaging\xbox-one
- if exist ..\..\build rd /s /q ..\..\build
build_script:
- build.bat
after_build:
- cd %APPVEYOR_BUILD_FOLDER%
artifacts:
- path: devilutionx.zip
name: devilutionx.zip

View file

@ -9,7 +9,7 @@
<Identity
Name="b6830ff4-1ef5-4907-9d9e-1ba808edf70f"
Publisher="CN=devilutionX"
Version="__PROJECT_VERSION__" />
Version="__PROJECT_VERSION__.0" />
<mp:PhoneIdentity PhoneProductId="b6830ff4-1ef5-4907-9d9e-1ba808edf70f" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

Binary file not shown.