mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-09 04:06:27 -04:00
Add check for correct release version
Former-commit-id: 7ca9f3cf0c92de8fb871dd51b66e26ea184e6442 [formerly c7d6b76b10bf058942bc9eb00c10f4ce5f75fc9f] [formerly 9fc94afeadd5e849556fa57400dd41243768bc28] [formerly cbeb4900900e8f12ca4f4f2ee26025ab773b0874 [formerly a131cf97ba96583a63efad9f201e2cfe70fcbf89 [formerly 41723802d75201dd51c5e78cff25e50503158aff]]] Former-commit-id: 7653d0b9ec6f930ea69b5f590feb6ad158b47e3f [formerly 6cab91b40f8523019a0424cc2300ae3bc77132ce [formerly 198342bd8ec7194cc277ee477c92874e6ce2fe2c]] Former-commit-id: 49e12b7e5e5c6992d6a75121cfb8be061c1b6253 [formerly f7eccce37073d340cbb9db54b38b4713bbd1db60] Former-commit-id: 8bd16358e11c2d88d767ea42ead23fd9e1317385
This commit is contained in:
parent
2eb0746d5b
commit
0a6ff09140
@ -294,6 +294,13 @@ if ($dryrun -or $buildonly -or $release.assets_url -imatch '^https:') {
|
||||
} else {
|
||||
"`nBuilding UWP app..."
|
||||
$appxmanifest = Get-Content -Raw $PSScriptRoot/../package.appxmanifest
|
||||
if (-Not ($appxmanifest -match "Publisher=['`"]CN=Association\sKiwix")) {
|
||||
"PLEASE NOTE: You are building a Store version which is not valid for release on GitHub!"
|
||||
if (-Not $buildonly) {
|
||||
"You can use the appxupload to submit to the Store, but we won't release..."
|
||||
$buildonly = $true
|
||||
}
|
||||
}
|
||||
if (-Not ($appxmanifest -match "Version=['`"]$numeric_tag\.0['`"]")) {
|
||||
"The requested release version does not match the version in package.appxmanifest"
|
||||
"Updating..."
|
||||
|
Loading…
x
Reference in New Issue
Block a user