mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-09-08 14:49:34 -04:00
Update Set-AppVersion to update manifest.v2.json
This commit is contained in:
parent
da848aab1c
commit
5d1c52a9b5
@ -42,7 +42,7 @@ if ($VERSION -match '^v?[\d.]') {
|
||||
"`nSetting App Version to $VERSION in service-worker.js and app.js ..."
|
||||
(Get-Content ./service-worker.js) -replace '(appVersion\s*=\s*["''])[^"'']+', "`${1}$VERSION" | Set-Content ./service-worker.js
|
||||
(Get-Content ./www/js/app.js) -replace '(appVersion..\s*=\s*["''])[^"'']+', "`${1}$VERSION" | Set-Content ./www/js/app.js
|
||||
$FileList = './manifest.json', './manifest.webapp', './ubuntu_touch/manifest.json'
|
||||
$FileList = './manifest.json', 'manifest.v2.json', './manifest.webapp', './ubuntu_touch/manifest.json'
|
||||
ForEach ($File in $FileList) {
|
||||
$FileContent = Get-Content -Raw $File
|
||||
"Setting App Version to $VERSION in $File ..."
|
||||
|
Loading…
x
Reference in New Issue
Block a user