From fb8371c9af0a55631189f8d004f39b67cc7f7015 Mon Sep 17 00:00:00 2001 From: staphen Date: Wed, 14 Feb 2024 20:51:32 -0500 Subject: [PATCH] Get version from version file in UWP build --- Packaging/xbox-one/build.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packaging/xbox-one/build.bat b/Packaging/xbox-one/build.bat index d65f6942fa8..05c4bf0282a 100644 --- a/Packaging/xbox-one/build.bat +++ b/Packaging/xbox-one/build.bat @@ -11,7 +11,7 @@ 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