X-Git-Url: https://git.r.bdr.sh/rbdr/junction/blobdiff_plain/139f43c6caf963d66704fe1675bcc70735e21926..3f2e36eabf1494ac60a3cf533d3db86d25a6cc39:/Makefile?ds=inline diff --git a/Makefile b/Makefile index d4c4f4d..75433ea 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,4 @@ -default: preview - -build: docker-build +default: package start: docker-compose up @@ -8,5 +6,20 @@ start: 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-safari + +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/ + +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