X-Git-Url: https://git.r.bdr.sh/rbdr/junction/blobdiff_plain/06b7617a863d00dbcc91d1e46f09942c6aad366e..6717f3d8b71abf255b0e07a5024caa602b5a3d3c:/Makefile diff --git a/Makefile b/Makefile index 14c1f2d..dfcadb0 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,15 @@ default: package start: - docker-compose up + podman-compose up -docker-build: - docker-compose build +install-extension-dependencies: + cd extension && pnpm install -build: create-build-folder +build: install-extension-dependencies 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/ @@ -17,5 +17,13 @@ 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-safari: build + xcodebuild build -project safari/Junction.xcodeproj -scheme Junction -configuration Release -derivedDataPath ./build/_xcode | xcbeautify + cp -r ./build/_xcode/Build/Products/Release/Junction.app ./build/ + create-build-folder: mkdir -p build + +format: + pnpx prettier . --write + xcodebuild -project safari/Junction.xcodeproj | xcbeautify