Makefile: add dist goal for webstore
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,6 +1,7 @@
|
|||||||
/chromium
|
/chromium
|
||||||
/firefox
|
/firefox
|
||||||
/dist
|
/dist
|
||||||
|
/dist-webstore
|
||||||
|
|
||||||
/src/node_modules
|
/src/node_modules
|
||||||
/src/css
|
/src/css
|
||||||
|
12
Makefile
12
Makefile
@@ -1,6 +1,6 @@
|
|||||||
VERSION ?= $(shell cat .version)
|
VERSION ?= $(shell cat .version)
|
||||||
|
|
||||||
CLEAN_FILES := chromium firefox dist
|
CLEAN_FILES := chromium firefox dist dist-webstore
|
||||||
CHROME := $(shell which chromium 2>/dev/null || which chromium-browser 2>/dev/null || which chrome 2>/dev/null || which google-chrome 2>/dev/null || which google-chrome-stable 2>/dev/null)
|
CHROME := $(shell which chromium 2>/dev/null || which chromium-browser 2>/dev/null || which chrome 2>/dev/null || which google-chrome 2>/dev/null || which google-chrome-stable 2>/dev/null)
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
@@ -78,8 +78,8 @@ dist: clean extension chromium firefox crx-webstore crx-github
|
|||||||
|
|
||||||
git archive -o dist/$(VERSION).tar.gz --format tar.gz --prefix=browserpass-extension-$(VERSION)/ $(VERSION)
|
git archive -o dist/$(VERSION).tar.gz --format tar.gz --prefix=browserpass-extension-$(VERSION)/ $(VERSION)
|
||||||
|
|
||||||
(cd chromium && zip -FSr ../dist/chromium.zip *)
|
(cd chromium && zip -r ../dist/chromium.zip *)
|
||||||
(cd firefox && zip -FSr ../dist/firefox.zip *)
|
(cd firefox && zip -r ../dist/firefox.zip *)
|
||||||
|
|
||||||
mv browserpass-webstore.crx dist/
|
mv browserpass-webstore.crx dist/
|
||||||
mv browserpass-github.crx dist/
|
mv browserpass-github.crx dist/
|
||||||
@@ -89,3 +89,9 @@ dist: clean extension chromium firefox crx-webstore crx-github
|
|||||||
done
|
done
|
||||||
|
|
||||||
rm -f dist/$(VERSION).tar.gz
|
rm -f dist/$(VERSION).tar.gz
|
||||||
|
|
||||||
|
mkdir -p dist-webstore
|
||||||
|
cp -a chromium dist-webstore/
|
||||||
|
sed -i '/"key"/d' dist-webstore/chromium/manifest.json
|
||||||
|
(cd dist-webstore/chromium && zip -r ../chrome.zip *)
|
||||||
|
rm -rf dist-webstore/chromium
|
||||||
|
Reference in New Issue
Block a user