Include version in released zip and crx files (fixes #82)

This commit is contained in:
Maxim Baz
2019-04-09 17:20:04 +02:00
parent feb322dbfd
commit 54c6b5e3ca
2 changed files with 7 additions and 7 deletions

View File

@@ -78,11 +78,11 @@ dist: clean extension chromium firefox crx-webstore crx-github
git archive -o dist/browserpass-extension-$(VERSION).tar.gz --format tar.gz --prefix=browserpass-extension-$(VERSION)/ $(VERSION)
(cd chromium && zip -r ../dist/chromium.zip *)
(cd firefox && zip -r ../dist/firefox.zip *)
(cd chromium && zip -r ../dist/browserpass-chromium-$(VERSION).zip *)
(cd firefox && zip -r ../dist/browserpass-firefox-$(VERSION).zip *)
mv browserpass-webstore.crx dist/
mv browserpass-github.crx dist/
mv browserpass-webstore.crx dist/browserpass-webstore-$(VERSION).crx
mv browserpass-github.crx dist/browserpass-github-$(VERSION).crx
for file in dist/*; do \
gpg --detach-sign "$$file"; \
@@ -93,5 +93,5 @@ dist: clean extension chromium firefox crx-webstore crx-github
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 *)
(cd dist-webstore/chromium && zip -r ../chrome-$(VERSION).zip *)
rm -rf dist-webstore/chromium

View File

@@ -49,10 +49,10 @@ In order to install Browserpass correctly, you have to install two of its compon
- 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.
- Download `browserpass-github.crx` from the latest release and drag'n'drop it into `chrome://extensions`
- 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.
- Download `chromium.zip`, unarchive and use `Load unpacked extension` in `chrome://extensions` in Developer mode.
- Download `browserpass-chromium.zip`, unarchive and use `Load unpacked extension` in `chrome://extensions` in Developer mode.
- Browser extension for Firefox-based browsers (choose one of the options):
- Install the extension from [Firefox Add-ons](https://addons.mozilla.org/en-US/firefox/addon/browserpass-ce/) (which will provide auto-updates)
- Download `firefox.zip` from the latest release, unarchive and use `Load Temporary Add-on` on `about:debugging#addons` (remember the extension will be removed after browser is closed!).
- Download `browserpass-firefox.zip` from the latest release, unarchive and use `Load Temporary Add-on` on `about:debugging#addons` (remember the extension will be removed after browser is closed!).
### Verifying authenticity of the Github releases