diff options
feat: makefile
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 7 | ||||
-rwxr-xr-x | contrib/pack | 4 |
3 files changed, 12 insertions, 0 deletions
@@ -8,6 +8,7 @@ node_modules /.svelte-kit /build /static/generated +/artifacts # OS .DS_Store diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..94da109 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +all: build pack + +build: + pnpm build + +pack: + contrib/pack diff --git a/contrib/pack b/contrib/pack new file mode 100755 index 0000000..f57473a --- /dev/null +++ b/contrib/pack @@ -0,0 +1,4 @@ +#!/usr/bin/env zsh +# Packs the built extension from the `build` directory, assumes everything's already built +set -eax +pnpm web-ext build -s build -a artifacts -o -n "$(jq -r '.name + "-" + .version + "-unsigned.zip"' manifest.json)" |