Skip to content

Commit ad5abdd

Browse files
authored
Provide two .crx files as part of a release (#68)
1 parent 3b0b97d commit ad5abdd

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

Makefile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ VERSION ?= $(shell cat .version)
22

33
CLEAN_FILES := chromium firefox dist
44
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)
5-
PEM := $(shell find . -maxdepth 1 -name "*.pem")
65

76
#######################
87
# For local development
@@ -63,26 +62,27 @@ clean:
6362
rm -rf $(CLEAN_FILES)
6463
$(MAKE) -C src clean
6564

66-
.PHONY: crx
67-
crx:
68-
ifneq ($(PEM),)
69-
"$(CHROME)" --disable-gpu --pack-extension=./chromium --pack-extension-key=$(PEM)
70-
else
71-
"$(CHROME)" --disable-gpu --pack-extension=./chromium
72-
rm chromium.pem
73-
endif
74-
mv chromium.crx browserpass.crx
65+
.PHONY: crx-webstore
66+
crx-webstore:
67+
"$(CHROME)" --disable-gpu --pack-extension=./chromium --pack-extension-key=webstore.pem
68+
mv chromium.crx browserpass-webstore.crx
69+
70+
.PHONY: crx-github
71+
crx-github:
72+
"$(CHROME)" --disable-gpu --pack-extension=./chromium --pack-extension-key=github.pem
73+
mv chromium.crx browserpass-github.crx
7574

7675
.PHONY: dist
77-
dist: clean extension chromium firefox crx
76+
dist: clean extension chromium firefox crx-webstore crx-github
7877
mkdir -p dist
7978

8079
git archive -o dist/$(VERSION).tar.gz --format tar.gz --prefix=browserpass-extension-$(VERSION)/ $(VERSION)
8180

8281
(cd chromium && zip -FSr ../dist/chromium.zip *)
8382
(cd firefox && zip -FSr ../dist/firefox.zip *)
8483

85-
mv browserpass.crx dist/
84+
mv browserpass-webstore.crx dist/
85+
mv browserpass-github.crx dist/
8686

8787
for file in dist/*; do \
8888
gpg --detach-sign "$$file"; \

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ In order to install Browserpass correctly, you have to install two of its compon
4242
- [Native messaging host](https://github.com/browserpass/browserpass-native#installation)
4343
- Browser extension for Chromium-based browsers (choose one of the options):
4444
- Install the extension from [Chrome Web Store](https://chrome.google.com/webstore/detail/browserpass-ce/naepdomgkenhinolocfifgehidddafch) (which will provide auto-updates)
45-
- Download `browserpass.crx` from the latest release and drag'n'drop it into `chrome://extensions` (remember to watch for new releases!).
45+
- Download `browserpass-webstore.crx` from the latest release and drag'n'drop it into `chrome://extensions`
46+
- This extension has the same ID as the one in Chrome Web Store, so when a new version will appear in Web Store, it will auto-update! Use if you want to be on latest and greatest version.
47+
- Download `browserpass-github.crx` from the latest release and drag'n'drop it into `chrome://extensions`
48+
- This extension has a different ID comparing to the one in Chrome Web Store, so you will not receive any auto-updates! Use for creating distro packages, or if you simply don't tolerate being forced to update when a new version is released.
4649
- Download `chromium.zip`, unarchive and use `Load unpacked extension` in `chrome://extensions` in Developer mode.
4750
- Browser extension for Firefox-based browsers (choose one of the options):
4851
- Install the extension from [Firefox Add-ons](https://addons.mozilla.org/en-US/firefox/addon/browserpass-ce/) (which will provide auto-updates)

0 commit comments

Comments
 (0)