-default: preview
-
-build: docker-build
+default: package
start:
- docker-compose up
+ podman-compose up
+
+install-extension-dependencies:
+ cd extension && pnpm install
+
+build: install-extension-dependencies 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 | xcbeautify
+ cp -r ./build/_xcode/Build/Products/Release/Junction.app ./build/
-docker-build:
- docker-compose build
+create-build-folder:
+ mkdir -p build
-package:
- cd extension && zip -r ../junction.xpi manifest.json junction.js build/content_script.js icons/ sounds/
+format:
+ prettier . --write
+ xcodebuild -project safari/Junction.xcodeproj | xcbeautify