Update build scripts

Former-commit-id: b44d010df58c4c6b379c16b396bb3ca681585b56 [formerly 42006c624de7aeba592e3107f4f6774a7e2b0d50 [formerly ea8a79a1180eee7328e2a4a99a0539270a1e31ba]]
Former-commit-id: c439a00174e4ae8cbd9023fbf43f4ee0e0e25f66
Former-commit-id: 80b83db05ffc3e166b3f4b148fbb335fadd544aa
This commit is contained in:
Jaifroid 2021-07-29 09:06:42 +01:00
parent bea0589e51
commit fcaa8432db
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ if (-Not $only32bit) {
} else {
"Caller requested 32bitonly build"
}
$version10 = "0.54.0" # <<< value updated automatically from package.json if launched from Create-DraftRelease
$version10 = "0.54.1" # <<< value updated automatically from package.json if launched from Create-DraftRelease
$versionXP = "0.14.7"
$appBuild = "1.6.0N" # <<< value updated auotmatically from package.json if launched form Create-DraftRelease
$ZIMbase = "wikipedia_en_100_maxi"

View File

@ -275,7 +275,7 @@ if ($dryrun -or $buildonly -or $release.assets_url -imatch '^https:') {
}
if ($json_nwVersion) {
"Updating Build-NWJS with NWJS version from package.json: $json_nwVersion"
$script_body = $script_body -ireplace '(\$version\s*=\s*")[^"]+', "`${1}$json_nwVersion"
$script_body = $script_body -ireplace '(\$version10\s*=\s*")[^"]+', "`${1}$json_nwVersion"
}
$script_body = $script_body -ireplace '(appBuild\s*=\s*")[^"]+', ("`${1}$numeric_tag" + "N")
$script_body = $script_body -replace '\s+$', "`n"
@ -330,7 +330,7 @@ if ($dryrun -or $buildonly -or $release.assets_url -imatch '^https:') {
}
if ($json_nwVersion) {
"Updating Build-NWJS with NWJS version from package.json: $json_nwVersion"
$script_body = $script_body -ireplace '(\$version\s*=\s*")[^"]+', "`${1}$json_nwVersion"
$script_body = $script_body -ireplace '(\$version10\s*=\s*")[^"]+', "`${1}$json_nwVersion"
}
$script_body = $script_body -replace '\s+$', "`n"
if ($dryrun) {