From: Ruben Beltran del Rio Date: Wed, 30 Aug 2023 17:47:40 +0000 (+0200) Subject: Add packaging info X-Git-Url: https://git.r.bdr.sh/rbdr/junction/commitdiff_plain/ec4adc33ec00dfe4a5720a13551428aaddaf72d9?ds=sidebyside Add packaging info --- diff --git a/Makefile b/Makefile index d4c4f4d..0aecb76 100644 --- a/Makefile +++ b/Makefile @@ -8,5 +8,10 @@ start: docker-build: docker-compose build -package: - cd extension && zip -r ../junction.xpi manifest.json junction.js build/content_script.js icons/ sounds/ +package: package-for-firefox + +package-for-firefox: create-build-folder + cd extension && zip -r ../build/junction.xpi manifest.json junction.js build/content_script.js icons/ sounds/ + +create-build-folder: + mkdir -p build diff --git a/README.md b/README.md index ab0c18a..44f490d 100644 --- a/README.md +++ b/README.md @@ -23,3 +23,8 @@ This will enable the extension and will allow you to use the inspector to debug. In order to test on chrome, first go to `chrome://extensions/`. Make sure `Developer mode` is enabled. Then click `Load Unpacked` and point the browser to the `extension` directory. + +### Packaging + +The makefile includes scripts to create a distributable package. `make package` +should generate all supported files in the `build/` directory.