Browse Source

Added UWP to appveyor.yaml (#3959)

pull/3960/head
Felipe Wannmacher 4 years ago committed by GitHub
parent
commit
1ca5e5681b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .gitignore
  2. 4
      Packaging/xbox-one/build.bat
  3. 16
      appveyor-uwp.yml
  4. 47
      appveyor.yml
  5. 2
      uwp-project/Package.appxmanifest.template
  6. BIN
      uwp-project/devilutionX_TemporaryKey.pfx

2
.gitignore vendored

@ -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

4
Packaging/xbox-one/build.bat

@ -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"

16
appveyor-uwp.yml

@ -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

47
appveyor.yml

@ -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:
- job_name: windows
appveyor_build_worker_image: Visual Studio 2022
- job_name: uwp
appveyor_build_worker_image: Visual Studio 2022
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:
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:
build:
project: $(APPVEYOR_BUILD_FOLDER)\$(APPVEYOR_PROJECT_NAME).sln
verbosity: minimal
artifacts:
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

2
uwp-project/Package.appxmanifest.template

@ -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"/>

BIN
uwp-project/devilutionX_TemporaryKey.pfx

Binary file not shown.
Loading…
Cancel
Save