diff --git a/scripts/Build-NWJS.ps1 b/scripts/Build-NWJS.ps1 index ef4fd22d..7975b557 100644 --- a/scripts/Build-NWJS.ps1 +++ b/scripts/Build-NWJS.ps1 @@ -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" -} \ No newline at end of file +} diff --git a/scripts/Create-DraftRelease.ps1 b/scripts/Create-DraftRelease.ps1 index f533463d..baec304e 100644 --- a/scripts/Create-DraftRelease.ps1 +++ b/scripts/Create-DraftRelease.ps1 @@ -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"