update publishing instructions

This commit is contained in:
Dima Gerasimov 2020-02-08 17:12:37 +00:00
parent 694f577363
commit 7b637563b5
2 changed files with 16 additions and 15 deletions

View file

@ -1,20 +1,13 @@
Build status: [![CircleCI](https://circleci.com/gh/karlicoss/grasp.svg?style=svg)](https://circleci.com/gh/karlicoss/grasp)
Grasp is a browser extension [Chrome](https://chrome.google.com/webstore/detail/org-grasp/ohhbcfjmnbmgkajljopdjcaokbpgbgfa) and [Firefox](https://addons.mozilla.org/en-US/firefox/addon/grasp), which adds a button/keybinding to capture current page title and url,
Grasp is a browser extension for [Chrome](https://chrome.google.com/webstore/detail/org-grasp/ohhbcfjmnbmgkajljopdjcaokbpgbgfa) and [Firefox](https://addons.mozilla.org/en-US/firefox/addon/grasp), which adds a button/keybinding to capture current page title and url,
possibly selected text, additional comments or tags and adds it into your [Org Mode](https://orgmode.org/) file.
[Screenshot](https://user-images.githubusercontent.com/291333/51799721-a984eb80-221c-11e9-9612-8eb7f553dc01.png), [short demo](https://www.youtube.com/watch?v=Z8Bk-IazdGo).
Install from Chrome store:
* [localhost only version](https://chrome.google.com/webstore/detail/org-grasp/ohhbcfjmnbmgkajljopdjcaokbpgbgfa)
* [any host version](https://chrome.google.com/webstore/detail/org-grasp-any-host/gcfhlnaalomahoampfjhinmgjikkkgep) (the only difference are permissions in manifest)
Install from addons.mozilla.org:
* [localhost only version](https://addons.mozilla.org/en-US/firefox/addon/grasp)
Install from a zip: [releases](https://github.com/karlicoss/grasp/releases).
- [Chrome](https://chrome.google.com/webstore/detail/org-grasp/ohhbcfjmnbmgkajljopdjcaokbpgbgfa)
- [Firefox](https://addons.mozilla.org/en-US/firefox/addon/grasp)
- or, install from a zip: [releases](https://github.com/karlicoss/grasp/releases).
# Running
In the simplest setup, the server runs locally, and you can use 'localhost' version of the extension. If you have to work on a computer where you can't run python scripts,
@ -103,8 +96,15 @@ Extra tests (not integrated in CI yet):
## publishing
- firefox: `./build --firefox --release --lint && web-ext -s dist build`, then upload on [AMO](https://addons.mozilla.org/en-GB/developers/addon/grasp/versions)
- run `./publish` to generate extension zip files
- firefox: `./build --firefox --release --lint --sign`
After than, upload the signed `xpi` file on [AMO](https://addons.mozilla.org/en-GB/developers/addon/grasp/versions)
- chrome: `./build --chrome --release --lint`
After that, upload the zip (generated by publish script) on [Web store](https://chrome.google.com/webstore/developer/dashboard)
# Credits
* Icon made by <a href="https://www.freepik.com/" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a>, licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0" target="_blank">CC 3.0 BY</a>

View file

@ -11,11 +11,12 @@ fi
function rebuild {
local res="$1"
npm run build
zip -r -j "$res" build/*
local browser="$2"
./build --target "$browser" --release --lint
zip -r -j "$res" dist/*
unzip -l "$res"
}
for browser in "chrome" "firefox"; do
TARGET="$browser" rebuild "grasp-$VERSION-$browser.zip"
rebuild "grasp-$VERSION-$browser.zip" "$browser"
done