aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2023-08-30 19:47:40 +0200
committerRuben Beltran del Rio <ruben@unlimited.pizza>2023-08-30 19:47:40 +0200
commitec4adc33ec00dfe4a5720a13551428aaddaf72d9 (patch)
tree75411820c642b9c3ae2962cc4746c532c8a1ce17
parent4ab9ded462b34c26c46d7ab5af1fbe3973d922c9 (diff)
Add packaging info
-rw-r--r--Makefile9
-rw-r--r--README.md5
2 files changed, 12 insertions, 2 deletions
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.