From fcaa8432db407dd0932aed2f9bf25857431d473b Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Thu, 29 Jul 2021 09:06:42 +0100 Subject: [PATCH] Update build scripts Former-commit-id: b44d010df58c4c6b379c16b396bb3ca681585b56 [formerly 42006c624de7aeba592e3107f4f6774a7e2b0d50 [formerly ea8a79a1180eee7328e2a4a99a0539270a1e31ba]] Former-commit-id: c439a00174e4ae8cbd9023fbf43f4ee0e0e25f66 Former-commit-id: 80b83db05ffc3e166b3f4b148fbb335fadd544aa --- scripts/Build-NWJS.ps1 | 2 +- scripts/Create-DraftRelease.ps1 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/Build-NWJS.ps1 b/scripts/Build-NWJS.ps1 index 48483cde..7905cf70 100644 --- a/scripts/Build-NWJS.ps1 +++ b/scripts/Build-NWJS.ps1 @@ -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" diff --git a/scripts/Create-DraftRelease.ps1 b/scripts/Create-DraftRelease.ps1 index f90a86bb..b24e13f5 100644 --- a/scripts/Create-DraftRelease.ps1 +++ b/scripts/Create-DraftRelease.ps1 @@ -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) {