mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-10 04:40:27 -04:00
Update build scripts
Former-commit-id: b44d010df58c4c6b379c16b396bb3ca681585b56 [formerly 42006c624de7aeba592e3107f4f6774a7e2b0d50 [formerly ea8a79a1180eee7328e2a4a99a0539270a1e31ba]] Former-commit-id: c439a00174e4ae8cbd9023fbf43f4ee0e0e25f66 Former-commit-id: 80b83db05ffc3e166b3f4b148fbb335fadd544aa
This commit is contained in:
parent
bea0589e51
commit
fcaa8432db
@ -8,7 +8,7 @@ if (-Not $only32bit) {
|
|||||||
} else {
|
} else {
|
||||||
"Caller requested 32bitonly build"
|
"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"
|
$versionXP = "0.14.7"
|
||||||
$appBuild = "1.6.0N" # <<< value updated auotmatically from package.json if launched form Create-DraftRelease
|
$appBuild = "1.6.0N" # <<< value updated auotmatically from package.json if launched form Create-DraftRelease
|
||||||
$ZIMbase = "wikipedia_en_100_maxi"
|
$ZIMbase = "wikipedia_en_100_maxi"
|
||||||
|
@ -275,7 +275,7 @@ if ($dryrun -or $buildonly -or $release.assets_url -imatch '^https:') {
|
|||||||
}
|
}
|
||||||
if ($json_nwVersion) {
|
if ($json_nwVersion) {
|
||||||
"Updating Build-NWJS with NWJS version from package.json: $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 -ireplace '(appBuild\s*=\s*")[^"]+', ("`${1}$numeric_tag" + "N")
|
||||||
$script_body = $script_body -replace '\s+$', "`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) {
|
if ($json_nwVersion) {
|
||||||
"Updating Build-NWJS with NWJS version from package.json: $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"
|
$script_body = $script_body -replace '\s+$', "`n"
|
||||||
if ($dryrun) {
|
if ($dryrun) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user