summaryrefslogtreecommitdiffstats
path: root/Makebeta
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 08:00:07 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 08:00:07 +0000
commit71b1940231738aac70ede9ecb211614eae8873aa (patch)
treed42a8e658862d9e2c3d2ec144394170bc321f5a0 /Makebeta
parentInitial commit. (diff)
downloadeas4tbsync-71b1940231738aac70ede9ecb211614eae8873aa.tar.xz
eas4tbsync-71b1940231738aac70ede9ecb211614eae8873aa.zip
Adding upstream version 4.7.upstream/4.7
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'Makebeta')
-rw-r--r--Makebeta34
1 files changed, 34 insertions, 0 deletions
diff --git a/Makebeta b/Makebeta
new file mode 100644
index 0000000..f20d2bb
--- /dev/null
+++ b/Makebeta
@@ -0,0 +1,34 @@
+#!/bin/bash
+# This file is part of EAS-4-TbSync.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+# $1 link to base web server : https://tbsync.jobisoft.de/beta
+# $2 local path of base web server : /var/www/jobisoft.de/tbsync/beta
+# $3 name of XPI : EAS-4-TbSync.xpi
+
+git clean -df
+git checkout -- .
+git pull
+
+version=$(cat manifest.json | jq -r .version)
+updatefile=update-eas.json
+
+sed -i "s/%VERSION%/$version/g" "beta-release-channel-update.json"
+sed -i "s|%LINK%|$1/$3|g" "beta-release-channel-update.json"
+sed -i "s/static getApiVersion() { return \"/static getApiVersion() { return \"Beta /g" "content/provider.js"
+
+echo "Releasing version $version via beta release channel (will include updateURL)"
+sed -i "s|\"name\": \"__MSG_extensionName__\",|\"name\": \"EAS for TbSync [Beta Release Channel]\",|g" "manifest.json"
+sed -i "s|\"gecko\": {|\"gecko\": {\n \"update_url\": \"$1/$updatefile\",|g" "manifest.json"
+
+cp beta-release-channel-update.json $2/$updatefile
+
+rm -f $3
+rm -f $3.tar.gz
+zip -r $3 content _locales manifest.json background.js LICENSE CONTRIBUTORS.md
+tar cfvz $3.tar.gz content _locales manifest.json background.js LICENSE CONTRIBUTORS.md
+cp $3 $2/$3
+cp $3.tar.gz $2/$3.tar.gz