Browse Source

Update Xbox One build script

pull/8231/head
Gleb Mazovetskiy 6 months ago committed by Anders Jenbo
parent
commit
a684372bd3
  1. 7
      .github/workflows/xbox_one.yml
  2. 4
      Packaging/xbox-one/build.bat
  3. 2
      docs/building.md
  4. 4
      uwp-project/devilutionx.vcxproj

7
.github/workflows/xbox_one.yml

@ -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/ccache-action@v1.2
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.3
uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: x64

4
Packaging/xbox-one/build.bat

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

2
docs/building.md

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

4
uwp-project/devilutionx.vcxproj

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

Loading…
Cancel
Save