Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marius-wieschollek/passwords-webextension.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius David Wieschollek <passwords.public@mdns.eu>2021-12-15 22:19:17 +0300
committerMarius David Wieschollek <passwords.public@mdns.eu>2021-12-15 22:19:17 +0300
commit2d8131ca9f0257a4ed2496e128f6c17a2db2bf9f (patch)
tree18560153a2740afc3be77d13876f027687af4f04
parentae6252433b32642a7cb1a955679424f5a7758903 (diff)
Update version handling
-rw-r--r--package.json2
-rw-r--r--src/platform/chrome/manifest.json4
-rw-r--r--src/platform/fenix/manifest.json2
-rw-r--r--src/platform/firefox/manifest.json2
-rw-r--r--webpack.config.js7
5 files changed, 11 insertions, 6 deletions
diff --git a/package.json b/package.json
index c61a2bd..7a1bd63 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "passwords-webextension",
- "version": "2.2.2",
+ "version": "2.2.3",
"description": "The official browser client of the Passwords app for Nextcloud",
"private": true,
"scripts": {
diff --git a/src/platform/chrome/manifest.json b/src/platform/chrome/manifest.json
index 5cbf752..a50162c 100644
--- a/src/platform/chrome/manifest.json
+++ b/src/platform/chrome/manifest.json
@@ -1,8 +1,8 @@
{
"manifest_version" : 2,
"name" : "__MSG_extensionName__",
- "version" : "2.2.2.99999",
- "version_name" : "2.2.2",
+ "version" : "X.X.X.99999",
+ "version_name" : "X.X.X",
"description" : "__MSG_extensionDescription__",
"author" : "Marius Wieschollek",
"default_locale" : "en",
diff --git a/src/platform/fenix/manifest.json b/src/platform/fenix/manifest.json
index aee4729..7019787 100644
--- a/src/platform/fenix/manifest.json
+++ b/src/platform/fenix/manifest.json
@@ -1,7 +1,7 @@
{
"manifest_version" : 2,
"name" : "__MSG_extensionName__",
- "version" : "2.2.2.BUILD",
+ "version" : "X.X.X.BUILD",
"description" : "__MSG_extensionDescription__",
"author" : "Marius Wieschollek",
"default_locale" : "en",
diff --git a/src/platform/firefox/manifest.json b/src/platform/firefox/manifest.json
index fc10663..e96eaa4 100644
--- a/src/platform/firefox/manifest.json
+++ b/src/platform/firefox/manifest.json
@@ -1,7 +1,7 @@
{
"manifest_version" : 2,
"name" : "__MSG_extensionName__",
- "version" : "2.2.2.BUILD",
+ "version" : "X.X.X.BUILD",
"description" : "__MSG_extensionDescription__",
"author" : "Marius Wieschollek",
"default_locale" : "en",
diff --git a/webpack.config.js b/webpack.config.js
index 14e53cc..d28c582 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -12,6 +12,11 @@ module.exports = (env, argv) => {
console.log('Production: ', production);
console.log('Platform : ', platform);
+
+ let replaceVersion = (content) => {
+ return content.toString('utf8').replaceAll('X.X.X', config.version);
+ };
+
let plugins = [
new webpack.DefinePlugin(
{
@@ -29,7 +34,7 @@ module.exports = (env, argv) => {
{
patterns: [
{from: `${__dirname}/src/platform/generic`, to: `${__dirname}/build`},
- {from: `${__dirname}/src/platform/${platform}`, to: `${__dirname}/build`}
+ {from: `${__dirname}/src/platform/${platform}`, to: `${__dirname}/build`, transform: replaceVersion}
]
}
),