]> git.r.bdr.sh - rbdr/junction/commitdiff
Add packaging info
authorRuben Beltran del Rio <redacted>
Wed, 30 Aug 2023 17:47:40 +0000 (19:47 +0200)
committerRuben Beltran del Rio <redacted>
Wed, 30 Aug 2023 17:47:40 +0000 (19:47 +0200)
Makefile
README.md

index d4c4f4d2a7138c1f5d92e2bc6ec1c13483daf321..0aecb76067bbc6969aaac2da424c4eed4a5e9b40 100644 (file)
--- 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
index ab0c18a7c51d573b878c43e9648bb1e835201b0e..44f490ddbc3ac4ed5c8cbd22e5b606718d8ba296 100644 (file)
--- 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.