aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-02-24 03:33:43 +0100
committerLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-02-24 03:33:43 +0100
commitc903407fc20d97fbfd6a25a2a85c05d91fbefb07 (patch)
treefd77958e7b75c5b13aac2a290bbc9d74262456a7
parent67bfa4772b1139ac6b00ce697e738b6dfe00ab1e (diff)
downloadhttptool-c903407fc20d97fbfd6a25a2a85c05d91fbefb07.tar.gz
httptool-c903407fc20d97fbfd6a25a2a85c05d91fbefb07.tar.bz2
httptool-c903407fc20d97fbfd6a25a2a85c05d91fbefb07.tar.lz
httptool-c903407fc20d97fbfd6a25a2a85c05d91fbefb07.zip

feat: makefile

-rw-r--r--.gitignore1
-rw-r--r--Makefile7
-rwxr-xr-xcontrib/pack4
3 files changed, 12 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 55b7ad4..66dffdf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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)"