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. 37
      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/fonts
uwp-project/Assets/gendata uwp-project/Assets/gendata
uwp-project/Assets/ui_art 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 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" 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"
cd ..\Packaging\xbox-one

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

37
appveyor.yml

@ -2,10 +2,25 @@ version: 1.0.{build}
pull_requests: pull_requests:
do_not_increment_build_number: true do_not_increment_build_number: true
image: Visual Studio 2022 environment:
matrix:
- 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' cache: '%LOCALAPPDATA%\vcpkg\archives'
install: install:
- if not exist C:\Tools\vcpkg mkdir C:\Tools\vcpkg
- cd C:\Tools\vcpkg - cd C:\Tools\vcpkg
- git pull - git pull
- .\bootstrap-vcpkg.bat - .\bootstrap-vcpkg.bat
@ -17,6 +32,26 @@ before_build:
build: build:
project: $(APPVEYOR_BUILD_FOLDER)\$(APPVEYOR_PROJECT_NAME).sln project: $(APPVEYOR_BUILD_FOLDER)\$(APPVEYOR_PROJECT_NAME).sln
verbosity: minimal verbosity: minimal
artifacts: artifacts:
- path: Debug\devilutionx.exe - path: Debug\devilutionx.exe
name: 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 <Identity
Name="b6830ff4-1ef5-4907-9d9e-1ba808edf70f" Name="b6830ff4-1ef5-4907-9d9e-1ba808edf70f"
Publisher="CN=devilutionX" Publisher="CN=devilutionX"
Version="__PROJECT_VERSION__" /> Version="__PROJECT_VERSION__.0" />
<mp:PhoneIdentity PhoneProductId="b6830ff4-1ef5-4907-9d9e-1ba808edf70f" PhonePublisherId="00000000-0000-0000-0000-000000000000"/> <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