aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.