fix(packaging): don't use letters in msix version

Signed-off-by: seth <getchoo@tuta.io>
This commit is contained in:
seth 2023-06-10 21:11:05 -04:00
parent a37f1dd69d
commit 6daa653ab3
No known key found for this signature in database
GPG Key ID: D31BD0D494BBEE86

View File

@ -439,10 +439,14 @@ jobs:
shell: pwsh shell: pwsh
run: | run: |
Set-Location ${{ env.INSTALL_DIR }} Set-Location ${{ env.INSTALL_DIR }}
# MSIX only allows numbers in their versions,
# so we need to sacrifice a bit of verbosity
$commitNumbers = "${{ env.VERSION }}" -replace "[^0-9]", ""
$version = "7.0.0.$commitNumbers"
Copy-Item ${{ github.workspace }}\program_info\prismlauncher_*x*.png . Copy-Item ${{ github.workspace }}\program_info\prismlauncher_*x*.png .
(Get-Content ${{ github.workspace }}\program_info\AppxManifest.xml) ` (Get-Content ${{ github.workspace }}\program_info\AppxManifest.xml) `
-replace "PRISM_VERSION_REPLACEME","${{ env.VERSION }}.0.0" ` -replace "PRISM_VERSION_REPLACEME","$version" `
-replace "PRISM_ARCH_REPLACEME","${{ matrix.architecture }}" ` -replace "PRISM_ARCH_REPLACEME","${{ matrix.architecture }}" `
> .\AppxManifest.xml > .\AppxManifest.xml