From 98e7409d95a27726516dee6ad1bae68dbab8cbbb Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Fri, 14 Jul 2023 11:57:23 +0100 Subject: [PATCH] Bump app version number --- package-github.appxmanifest | 2 +- package.appxmanifest | 2 +- package.json | 4 +--- package.json.nwjs | 2 +- scripts/Build-NWJS.ps1 | 3 +-- service-worker.js | 2 +- www/js/init.js | 2 +- 7 files changed, 7 insertions(+), 10 deletions(-) diff --git a/package-github.appxmanifest b/package-github.appxmanifest index 79563978..c30780da 100644 --- a/package-github.appxmanifest +++ b/package-github.appxmanifest @@ -1,6 +1,6 @@  - + Kiwix JS diff --git a/package.appxmanifest b/package.appxmanifest index e552cd78..78f09af2 100644 --- a/package.appxmanifest +++ b/package.appxmanifest @@ -1,6 +1,6 @@  - + Kiwix JS diff --git a/package.json b/package.json index 2fe318d7..8ab2ba2a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "kiwix-js-electron", "productName": "Kiwix JS Electron", - "version": "2.5.4-N", + "version": "2.5.5-E", "description": "Kiwix JS packaged for the Electron framework", "main": "main.cjs", "type": "module", @@ -158,5 +158,3 @@ "electron-updater": "^6.1.0" } } - - diff --git a/package.json.nwjs b/package.json.nwjs index fe298930..19383dd0 100644 --- a/package.json.nwjs +++ b/package.json.nwjs @@ -1,7 +1,7 @@ { "name": "kiwix_js_windows", "productName": "Kiwix JS Windows", - "version": "2.5.4-N", + "version": "2.5.5-N", "description": "Kiwix JS Windows for NWJS", "main": "index.html", "domain": "kiwix.js.windows", diff --git a/scripts/Build-NWJS.ps1 b/scripts/Build-NWJS.ps1 index 8ef0309c..2c51a68b 100644 --- a/scripts/Build-NWJS.ps1 +++ b/scripts/Build-NWJS.ps1 @@ -12,7 +12,7 @@ if (-Not $only32bit) { } $version10 = "0.72.0" # <<< value updated automatically from package.json if launched from Create-DraftRelease $versionXP = "0.14.7" -$appBuild = "2.5.4-N" # <<< value updated auotmatically from package.json if launched from Create-DraftRelease +$appBuild = "2.5.5-N" # <<< value updated auotmatically from package.json if launched from Create-DraftRelease # Check that the dev has included the correct archive in this branch $init_params = Get-Content -Raw "$PSScriptRoot\..\dist\www\js\init.js" $PackagedArchive = $init_params -imatch 'params\[.packagedFile.][^;]+?[''"]([^\s]+?\.zim)[''"];' @@ -106,4 +106,3 @@ foreach ($build in $builds) { Compress-Archive "$PSScriptRoot\..\dist\bld\nwjs\$build-$version\*" "$PSScriptRoot\..\dist\bld\nwjs\$foldername.zip" -Force "Build $OBuild finished.`n" } - diff --git a/service-worker.js b/service-worker.js index f1e21d8f..87852d08 100644 --- a/service-worker.js +++ b/service-worker.js @@ -29,7 +29,7 @@ * download and install a new copy; we have to hard code this here because it is needed before any other file * is cached in APP_CACHE */ -const appVersion = '2.5.4'; +const appVersion = '2.5.5'; /** * The name of the Cache API cache in which assets defined in regexpCachedContentTypes will be stored diff --git a/www/js/init.js b/www/js/init.js index 68480c87..7b9e397e 100644 --- a/www/js/init.js +++ b/www/js/init.js @@ -53,7 +53,7 @@ var params = {}; var appstate = {}; // ******** UPDATE VERSION IN service-worker.js TO MATCH VERSION AND CHECK PWASERVER BELOW!!!!!!! ******* -params['appVersion'] = '2.5.4'; // DEV: Manually update this version when there is a new release: it is compared to the Settings Store "appVersion" in order to show first-time info, and the cookie is updated in app.js +params['appVersion'] = '2.5.5'; // DEV: Manually update this version when there is a new release: it is compared to the Settings Store "appVersion" in order to show first-time info, and the cookie is updated in app.js // ******* UPDATE THIS ^^^^^^ IN service worker AND PWA-SERVER BELOW !! ******************** params['packagedFile'] = getSetting('packagedFile') || 'wikipedia_en_100_mini_2023-06.zim'; // For packaged Kiwix JS (e.g. with Wikivoyage file), set this to the filename (for split files, give the first chunk *.zimaa) and place file(s) in default storage params['archivePath'] = 'archives'; // The directory containing the packaged archive(s) (relative to app's root directory)