diff options
author | Horst3180 | 2015-08-21 00:05:39 +0200 |
---|---|---|
committer | Horst3180 | 2015-08-21 00:05:39 +0200 |
commit | 0a879aaa77977ddd6dd0591b673ff4624c745032 (patch) | |
tree | f3f326787223fdeecd3ae8e8294f4579e3e9c9ca /make-xpi.sh | |
parent | 59803702086f0616ef1ce65726497c38d48db761 (diff) | |
download | solarc-firefox-theme-0a879aaa77977ddd6dd0591b673ff4624c745032.tar.gz solarc-firefox-theme-0a879aaa77977ddd6dd0591b673ff4624c745032.tar.xz solarc-firefox-theme-0a879aaa77977ddd6dd0591b673ff4624c745032.zip |
enable installation via autotools
Diffstat (limited to 'make-xpi.sh')
-rwxr-xr-x | make-xpi.sh | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/make-xpi.sh b/make-xpi.sh deleted file mode 100755 index 1c2b79c..0000000 --- a/make-xpi.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/bash - -DIR=`dirname -- "$0"` -cd $DIR - -VERSION=$(cat arc-firefox-theme/install.rdf | grep em:version | cut -f2 -d'>' | cut -f1 -d'<') - -DEFAULT_GUID=52c2877e-44e1-11e5-8874-a62d1d5d46B0 -DARKER_GUID=8a01dfcc-450f-11e5-909b-fb581d5d46b0 -DARK_GUID=03cb16aa-4675-11e5-b233-213b1d5d46b0 - -#clean previous .xpi files -rm -f *.xpi - -cp -r arc-firefox-theme arc-firefox-theme-light -cp -r arc-firefox-theme arc-firefox-theme-darker -cp -r arc-firefox-theme arc-firefox-theme-dark - - -# build default variant -cd arc-firefox-theme-light -cp chrome/browser/sass/browser-light.css chrome/browser/browser.css -rm -rf chrome/browser/sass - -#pack extension -zip -FS -r ../arc-firefox-theme-$VERSION.xpi * -cd .. - - -# build darker variant -cd arc-firefox-theme-darker -cp chrome/browser/sass/browser-darker.css chrome/browser/browser.css -rm -rf chrome/browser/sass - -#replace extension name -sed -i 's/arc-firefox-theme/arc-darker-firefox-theme/' chrome.manifest -sed -i 's/arc-firefox-theme/arc-darker-firefox-theme/' install.rdf -sed -i 's/Arc /Arc Darker /' install.rdf - -#replace extension GUID -sed -i "s/$DEFAULT_GUID/$DARKER_GUID/" install.rdf - -#pack extension -zip -FS -r ../arc-darker-firefox-theme-$VERSION.xpi * -cd .. - - -# build dark variant -cd arc-firefox-theme-dark -cp chrome/browser/sass/browser-dark.css chrome/browser/browser.css -rm -rf chrome/browser/sass - -#replace extension name -sed -i 's/arc-firefox-theme/arc-dark-firefox-theme/' chrome.manifest -sed -i 's/arc-firefox-theme/arc-dark-firefox-theme/' install.rdf -sed -i 's/Arc /Arc Dark /' install.rdf - -#replace extension GUID -sed -i "s/$DEFAULT_GUID/$DARK_GUID/" install.rdf - -#pack extension -zip -FS -r ../arc-dark-firefox-theme-$VERSION.xpi * -cd .. - -rm -rf arc-firefox-theme-light arc-firefox-theme-darker arc-firefox-theme-dark |