From 54c6b5e3ca5e0dd25322cbc5994e26d6fa069f73 Mon Sep 17 00:00:00 2001 From: Maxim Baz Date: Tue, 9 Apr 2019 17:20:04 +0200 Subject: [PATCH] Include version in released zip and crx files (fixes #82) --- Makefile | 10 +++++----- README.md | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index bec4a78..958f9c3 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index 36e4ab6..77a6475 100644 --- a/README.md +++ b/README.md @@ -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