From 7b637563b57028a821761c6e9a4c77ffef2bf104 Mon Sep 17 00:00:00 2001 From: Dima Gerasimov Date: Sat, 8 Feb 2020 17:12:37 +0000 Subject: [PATCH] update publishing instructions --- README.md | 24 ++++++++++++------------ publish | 7 ++++--- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 997ed1a..d3d9727 100644 --- a/README.md +++ b/README.md @@ -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 Freepik from www.flaticon.com, licensed by CC 3.0 BY diff --git a/publish b/publish index 27c13fc..a8086e9 100755 --- a/publish +++ b/publish @@ -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