X-Git-Url: https://git.r.bdr.sh/rbdr/junction/blobdiff_plain/90de3cbb942653f472bc663fc11749117b1f8873..5685e249653cae8c2ba97c0c59c45e3221d8ffa2:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index d65039b..75433ea 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,25 @@ -default: preview - -build: docker-build +default: package start: docker-compose up docker-build: docker-compose build + +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