]> git.r.bdr.sh - rbdr/junction/blobdiff - Makefile
Refactor content script
[rbdr/junction] / Makefile
index d4c4f4d2a7138c1f5d92e2bc6ec1c13483daf321..14c1f2db4d84185e871f82607b903b17d733d905 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,4 @@
-default: preview
-
-build: docker-build
+default: package
 
 start:
        docker-compose up
 
 start:
        docker-compose up
@@ -8,5 +6,16 @@ start:
 docker-build:
        docker-compose build
 
 docker-build:
        docker-compose build
 
-package:
-       cd extension && zip -r ../junction.xpi manifest.json junction.js build/content_script.js icons/ sounds/
+build: create-build-folder
+       cd extension && pnpm build
+
+package: package-for-firefox package-for-chrome
+
+package-for-firefox: build
+       cd extension && zip -r ../build/junction.xpi manifest.json junction.js build/content_script.js icons/ sounds/
+
+package-for-chrome: build
+       cd extension && zip -r ../build/junction.zip manifest.json junction.js build/content_script.js icons/ sounds/
+
+create-build-folder:
+       mkdir -p build