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",