Update packaging scripts

Former-commit-id: fa46ea5db8461c05a1c8255defb80d7fe3f7b53f [formerly 2b52d7bab3b60e622f5b3c42f9f6e6a0d79c5fd2 [formerly a6fddfa5a61f0d6c2cefc7ba93dfa28a79ec6c2c]]
Former-commit-id: ebf119f4adbc6c2617f86223cb2962d478e5296b
Former-commit-id: c303cb584ce6b140edb73e9d42e8ec1f91e35bfd
This commit is contained in:
Jaifroid 2021-05-19 13:33:34 +01:00
parent 86edba03b7
commit d08faa9dc2
2 changed files with 10 additions and 3 deletions

View File

@ -1,7 +1,7 @@
$builds = @("win-x64", "win-ia32", "win-xp")
$version = "0.53.0" # <<< value updated automatically from package.json if launched from Create-DraftRelease
$version = "0.53.1" # <<< value updated automatically from package.json if launched from Create-DraftRelease
$versionXP = "0.14.7"
$appBuild = "1.2.6N" # <<< value updated auotmatically from package.json if launched form Create-DraftRelease
$appBuild = "1.3.0N" # <<< value updated auotmatically from package.json if launched form Create-DraftRelease
$ZIMbase = "wikipedia_en_100_maxi"
cd $PSScriptRoot
cd ..
@ -69,4 +69,4 @@ foreach ($build in $builds) {
"Compressing folder..."
Compress-Archive "bld\nwjs\$build-$version\*" "bld\nwjs\$foldername.zip" -Force
"Build $OBuild finished.`n"
}
}

View File

@ -19,6 +19,13 @@ if ($tag_name -eq "") {
"Initiating dry run..."
}
}
if (-Not $buildonly) {
$buildonly_check = Read-Host "Do you wish to Build only, or build and Release? [B/R]"
$buildonly = -Not ( $buildonly_check -imatch 'r' )
If ($buildonly) {
"Packages will be built, but not uploaded for release."
}
}
}
if ($tag_name -NotMatch '^v\d+\.\d+\.\d+([EN-]|$)') {
"`nTag name must be in the format " + '"v0.0.0[E][N][-text]"!' + "`n"