Update Xbox One build script

This commit is contained in:
Gleb Mazovetskiy
2025-10-07 19:27:01 +02:00
committed by Anders Jenbo
parent 16b9a8e7b1
commit a684372bd3
4 changed files with 10 additions and 7 deletions
+5 -2
View File
@@ -6,14 +6,17 @@ on:
- master
paths-ignore:
- '*.md'
- 'docs/**'
pull_request:
types: [opened, synchronize]
paths-ignore:
- '*.md'
- 'docs/**'
release:
types: [published]
paths-ignore:
- '*.md'
- 'docs/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@@ -24,7 +27,7 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v5
with:
fetch-depth: 0
@@ -32,7 +35,7 @@ jobs:
uses: hendrikmuhs/[email protected]
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.3
uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: x64
+2 -2
View File
@@ -5,13 +5,13 @@ cd ..\..\build
git clone --branch SDL2 https://github.com/libsdl-org/SDL.git
git -C SDL reset --hard 10135b2d7bbed6ea0cba24410ebc12887d92968d
msbuild /p:PlatformToolset=v143;TargetPlatformVersion=10.0.22000.0;TargetPlatformMinVersion=10.0.14393.0;ConfigurationType=StaticLibrary;Configuration=Release;Platform=x64 SDL\VisualC-WinRT\SDL-UWP.vcxproj
msbuild /p:PlatformToolset=v143;TargetPlatformVersion=10.0.26100.0;TargetPlatformMinVersion=10.0.14393.0;ConfigurationType=StaticLibrary;Configuration=Release;Platform=x64 SDL\VisualC-WinRT\SDL-UWP.vcxproj
cmake -DUWP_LIB=1 -DUWP_SDL2_DIR="%CD%/SDL" -DCMAKE_BUILD_TYPE=x64-Release ..
msbuild /p:Configuration=Release;Platform=x64 /m DevilutionX.sln
powershell "Get-Content ..\uwp-project\Package.appxmanifest.template | %% {$_ -replace '__PROJECT_VERSION__',$(& {git describe --tags --abbrev=0})} | Out-File -FilePath ..\uwp-project\Package.appxmanifest -encoding ASCII"
powershell "Get-Content ..\uwp-project\Package.appxmanifest.template | %% {$_ -replace '__PROJECT_VERSION__',$(Select-String -Path ..\VERSION -Pattern \d+\.\d+\.\d+).Matches[0].Value} | Out-File -FilePath ..\uwp-project\Package.appxmanifest -encoding ASCII"
msbuild /p:Configuration=Release;Platform=x64;AppxBundle=Always;AppxBundlePlatforms=x64 /m ..\uwp-project\devilutionx.sln
+1 -1
View File
@@ -498,7 +498,7 @@ emrun index.html
* Git
* Visual Studio 2022 with the foloowing packages installed:
* C++ (v143) Universal Windows Platform tools
* Windows 11 SDK (10.0.22000.0)
* Windows 11 SDK (10.0.26100.0)
* Windows 10 SDK (10.0.18362.0)
* MSVC v143 - VS 2022 C++ x64/x86 build tools
+2 -2
View File
@@ -21,7 +21,7 @@
<ApplicationTypeRevision>8.2</ApplicationTypeRevision>
<TargetPlatformVersion>10.0.10069.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.10069.0</TargetPlatformMinVersion>
<WindowsTargetPlatformVersion>10.0.22000.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>10.0.26100.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformMinVersion>10.0.14393.0</WindowsTargetPlatformMinVersion>
<ProjectName>devilutionX</ProjectName>
</PropertyGroup>
@@ -142,4 +142,4 @@
<Import Project="$(VSINSTALLDIR)\Common7\IDE\Extensions\Microsoft\VsGraphics\MeshContentTask.targets" />
<Import Project="$(VSINSTALLDIR)\Common7\IDE\Extensions\Microsoft\VsGraphics\ShaderGraphContentTask.targets" />
</ImportGroup>
</Project>
</Project>