update publishing instructions
This commit is contained in:
parent
694f577363
commit
7b637563b5
24
README.md
24
README.md
|
@ -1,20 +1,13 @@
|
||||||
Build status: [![CircleCI](https://circleci.com/gh/karlicoss/grasp.svg?style=svg)](https://circleci.com/gh/karlicoss/grasp)
|
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.
|
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).
|
[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:
|
- [Chrome](https://chrome.google.com/webstore/detail/org-grasp/ohhbcfjmnbmgkajljopdjcaokbpgbgfa)
|
||||||
|
- [Firefox](https://addons.mozilla.org/en-US/firefox/addon/grasp)
|
||||||
* [localhost only version](https://chrome.google.com/webstore/detail/org-grasp/ohhbcfjmnbmgkajljopdjcaokbpgbgfa)
|
- or, install from a zip: [releases](https://github.com/karlicoss/grasp/releases).
|
||||||
* [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).
|
|
||||||
|
|
||||||
# Running
|
# 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,
|
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
|
## 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
|
# 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>
|
* 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>
|
||||||
|
|
7
publish
7
publish
|
@ -11,11 +11,12 @@ fi
|
||||||
|
|
||||||
function rebuild {
|
function rebuild {
|
||||||
local res="$1"
|
local res="$1"
|
||||||
npm run build
|
local browser="$2"
|
||||||
zip -r -j "$res" build/*
|
./build --target "$browser" --release --lint
|
||||||
|
zip -r -j "$res" dist/*
|
||||||
unzip -l "$res"
|
unzip -l "$res"
|
||||||
}
|
}
|
||||||
|
|
||||||
for browser in "chrome" "firefox"; do
|
for browser in "chrome" "firefox"; do
|
||||||
TARGET="$browser" rebuild "grasp-$VERSION-$browser.zip"
|
rebuild "grasp-$VERSION-$browser.zip" "$browser"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue