Update Set-AppVersion to update manifest.v2.json

This commit is contained in:
Jaifroid 2023-06-15 17:17:02 +01:00
parent da848aab1c
commit 5d1c52a9b5

View File

@ -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 ..."