From 50f08ac3b5e0f8b751c1a407c7f07b317e3b78f1 Mon Sep 17 00:00:00 2001 From: Dima Gerasimov Date: Mon, 9 Dec 2019 21:32:14 +0000 Subject: [PATCH] bump version, add instructions for AMO upload --- README.md | 8 ++++++-- build | 2 ++ package.json | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1e21054..fe5a469 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ No third party dependencies! Just `python3`. * `http://localhost/capture` for talking with backend * `content_security_policy` needed for webpack -# Building extension +# Building & developing The most up-to-date instructions should be in [CI config](./.circleci/config.yml). You're gonna need `npm` for building extension. @@ -72,7 +72,7 @@ After that you can find the extension in `dist` directory and 'Load unpacked** i ## building any host version If you do need unresticted url permissions, build the extensions like that: `ANY_HOST=yes ./build`. -## Development +## testing and linting Check [CI config](./.circleci/config.yml) to figure out all the checks I'm doing. The only test(s) that don't run on CI at the moment (e.g. due to lack of X server) are marked with `@skip_if_ci`. You can run them manually though. @@ -81,6 +81,10 @@ Extra tests (not integrated in CI yet): - `scripts/test_with_browser.py` +## 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) + # Credits * Icon made by Freepik from www.flaticon.com, licensed by CC 3.0 BY diff --git a/build b/build index c00a7f4..e15d0d2 100755 --- a/build +++ b/build @@ -61,6 +61,8 @@ def main(): from firefox_dev_secrets import API_KEY, API_SECRET webext( + # TODO use UUID? https://addons.mozilla.org/en-GB/developers/addon/grasp/edit + # TODO right, wouldn't work because it's listed.. '--artifacts-dir', str(dist_dir), '--api-key' , API_KEY, '--api-secret', API_SECRET, diff --git a/package.json b/package.json index 99dc320..25809bf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "grasp-extension", - "version": "0.6.4", + "version": "0.6.5", "description": "A reliable way of capturing web pages and content", "scripts": { "build": "webpack --progress --profile --colors",