mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-11-27 23:19:13 +08:00
db8472a6e5
* installer: extract version number into separate file and use it where possible * MSIX: rename package to include version on CDPx * installer: generate assembly info for FZ editor * MSIX: inject correct version to appxmanifest
15 lines
564 B
Batchfile
15 lines
564 B
Batchfile
cd /D "%~dp0"
|
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64 -winsdk=10.0.18362.0
|
|
|
|
powershell -file update_appxmanifest_version.ps1 || exit /b 1
|
|
|
|
call makeappx build /v /overwrite /f PackagingLayout.xml /id "PowerToys-x64" /op bin\ || exit /b 1
|
|
|
|
setlocal EnableDelayedExpansion
|
|
for /f "tokens=3delims=<>" %%i in ('findstr "<Version>" "..\Version.props"') do (
|
|
set MSIXVERSION=%%i
|
|
)
|
|
setlocal DisableDelayedExpansion
|
|
ren "bin\PowerToys-x64.msix" PowerToysSetup-%MSIXVERSION%-x64.msix
|