X-Git-Url: https://git.r.bdr.sh/rbdr/junction/blobdiff_plain/ec4adc33ec00dfe4a5720a13551428aaddaf72d9..06b7617a863d00dbcc91d1e46f09942c6aad366e:/Makefile diff --git a/Makefile b/Makefile index 0aecb76..14c1f2d 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,4 @@ -default: preview - -build: docker-build +default: package start: docker-compose up @@ -8,10 +6,16 @@ start: docker-build: docker-compose build -package: package-for-firefox +build: create-build-folder + cd extension && pnpm build + +package: package-for-firefox package-for-chrome -package-for-firefox: create-build-folder +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/ + create-build-folder: mkdir -p build