[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[reclaim-webextension] 52/95: support build of chrome and ff webext; us
From: |
gnunet |
Subject: |
[reclaim-webextension] 52/95: support build of chrome and ff webext; use version from latest tag |
Date: |
Fri, 11 Jun 2021 23:35:37 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository reclaim-webextension.
commit 6e9ddc2851862a0477cf931e5c7cfb4d3b4e44ff
Author: Martin Schanzenbach <mschanzenbach@posteo.de>
AuthorDate: Thu Aug 13 10:35:55 2020 +0200
support build of chrome and ff webext; use version from latest tag
---
Makefile | 12 ++++++++++++
bin/build_plugin | 7 +++++--
bin/package_plugin | 17 +++++++++++++++++
manifest.json => manifest-chrome.json | 16 +---------------
manifest.json => manifest-firefox.json | 2 +-
ui | 2 +-
6 files changed, 37 insertions(+), 19 deletions(-)
diff --git a/Makefile b/Makefile
index 5015077..936d9a4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,14 @@
+all: build package_firefox package_chrome clean
+ ./bin/build_plugin firefox chrome
+
build:
./bin/build_plugin
+
+package_firefox: build
+ ./bin/package_plugin firefox
+
+package_chrome: build
+ ./bin/package_plugin chrome
+
+clean:
+ if test -d build; then rm -rf build; fi
diff --git a/bin/build_plugin b/bin/build_plugin
index 2c5ffe0..3f81408 100755
--- a/bin/build_plugin
+++ b/bin/build_plugin
@@ -18,6 +18,9 @@ cd ..
rm -rf ui
-zip -r $DEST/reclaim-plugin.zip -FS *
-rm -rf $TEMPDIR
+if test -d $DEST/build
+then
+ rm -rf $DEST/build
+fi
+mv $TEMPDIR $DEST/build
cd $DEST
diff --git a/bin/package_plugin b/bin/package_plugin
new file mode 100755
index 0000000..f846f5f
--- /dev/null
+++ b/bin/package_plugin
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+TEMPDIR=build
+DEST=$PWD
+
+cd $TEMPDIR
+
+TARGET=$1
+if test $1 != "firefox" -a $1 != "chrome"
+then
+echo "Unknown extension target. Use 'firefox' or 'chrome'"
+exit 1
+fi
+
+cp manifest-$TARGET.json manifest.json # Set manifest for browser
+zip -r $DEST/reclaim-plugin-$TARGET-$(git describe --tags).zip -FS *
+cd $DEST
diff --git a/manifest.json b/manifest-chrome.json
similarity index 74%
copy from manifest.json
copy to manifest-chrome.json
index ff07a58..9896cff 100644
--- a/manifest.json
+++ b/manifest-chrome.json
@@ -3,22 +3,9 @@
"manifest_version": 2,
"name": "re:claimID",
"description": "An extension for use with re:claimID.",
- "version": "0.3.0",
-
- "applications": {
- "gecko": {
- "strict_min_version": "57.0"
- }
- },
- "browser_specific_settings": {
- "gecko": {
- "id": "{b2d334a4-bcd4-476f-9122-4e85f8a71ec5}",
- "strict_min_version": "57.0"
- }
- },
+ "version": "0.13.0",
"browser_action": {
- "browser_style": true,
"default_icon": "icons/logo.png",
"theme_icons": [{
"light": "icons/logo_dark.png",
@@ -48,7 +35,6 @@
"options_ui": {
"page": "index.html",
"open_in_tab": true,
- "browser_style": true,
"chrome_style": true
}
}
diff --git a/manifest.json b/manifest-firefox.json
similarity index 98%
rename from manifest.json
rename to manifest-firefox.json
index ff07a58..da98670 100644
--- a/manifest.json
+++ b/manifest-firefox.json
@@ -3,7 +3,7 @@
"manifest_version": 2,
"name": "re:claimID",
"description": "An extension for use with re:claimID.",
- "version": "0.3.0",
+ "version": "0.13.0",
"applications": {
"gecko": {
diff --git a/ui b/ui
index 7c39f4d..8f771fe 160000
--- a/ui
+++ b/ui
@@ -1 +1 @@
-Subproject commit 7c39f4d7980edda8fdfa65f0304153d6205791de
+Subproject commit 8f771fe65b5fa62b9533d54a20044067f1086ff2
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [reclaim-webextension] 31/95: v0.0.7, (continued)
- [reclaim-webextension] 31/95: v0.0.7, gnunet, 2021/06/11
- [reclaim-webextension] 37/95: swapped light/dark, gnunet, 2021/06/11
- [reclaim-webextension] 55/95: update for 0.13.3, gnunet, 2021/06/11
- [reclaim-webextension] 46/95: -fix redirect creation, gnunet, 2021/06/11
- [reclaim-webextension] 45/95: update to v0.2.0, gnunet, 2021/06/11
- [reclaim-webextension] 53/95: update ui; update makefile, gnunet, 2021/06/11
- [reclaim-webextension] 38/95: update ui, gnunet, 2021/06/11
- [reclaim-webextension] 58/95: messages.json file, gnunet, 2021/06/11
- [reclaim-webextension] 64/95: Translated using Weblate (English), gnunet, 2021/06/11
- [reclaim-webextension] 67/95: update locales, gnunet, 2021/06/11
- [reclaim-webextension] 52/95: support build of chrome and ff webext; use version from latest tag,
gnunet <=
- [reclaim-webextension] 72/95: improve submodule update, gnunet, 2021/06/11
- [reclaim-webextension] 60/95: add german message.json, gnunet, 2021/06/11
- [reclaim-webextension] 59/95: english messages.json finished, gnunet, 2021/06/11
- [reclaim-webextension] 70/95: redirect at api request, gnunet, 2021/06/11
- [reclaim-webextension] 63/95: Translated using Weblate (German), gnunet, 2021/06/11
- [reclaim-webextension] 54/95: v0.13.1, gnunet, 2021/06/11
- [reclaim-webextension] 62/95: Translated using Weblate (German), gnunet, 2021/06/11
- [reclaim-webextension] 57/95: updated ui, gnunet, 2021/06/11
- [reclaim-webextension] 65/95: small fix, gnunet, 2021/06/11
- [reclaim-webextension] 56/95: set default locale, gnunet, 2021/06/11