]> git.r.bdr.sh - rbdr/junction/blobdiff - Makefile
Add safari code
[rbdr/junction] / Makefile
index 14c1f2db4d84185e871f82607b903b17d733d905..75433eadf8465e4c0eb970a49fffc3d0a47ea8f4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ docker-build:
 build: create-build-folder
        cd extension && pnpm build
 
 build: create-build-folder
        cd extension && pnpm build
 
-package: package-for-firefox package-for-chrome
+package: package-for-firefox package-for-chrome package-for-safari
 
 package-for-firefox: build
        cd extension && zip -r ../build/junction.xpi manifest.json junction.js build/content_script.js icons/ sounds/
 
 package-for-firefox: build
        cd extension && zip -r ../build/junction.xpi manifest.json junction.js build/content_script.js icons/ sounds/
@@ -17,5 +17,9 @@ package-for-firefox: build
 package-for-chrome: build
        cd extension && zip -r ../build/junction.zip 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/
 
+package-for-safari: build
+       xcodebuild build -project safari/Junction.xcodeproj -scheme Junction -configuration Release -derivedDataPath ./build/_xcode
+       cp -r ./build/_xcode/Build/Products/Release/Junction.app ./build/
+
 create-build-folder:
        mkdir -p build
 create-build-folder:
        mkdir -p build