build works now
Build & Release binary / build (push) Successful in 26m20s

This commit is contained in:
2026-08-22 16:14:56 +05:00
parent 72e07f6a01
commit 6768b0a5b2
14 changed files with 506 additions and 22 deletions
+8
View File
@@ -22,12 +22,20 @@ echo "==> Building UI"
( cd httptoolkit-ui && npm ci && npm run build )
echo "==> Preparing server + embedding UI"
# overrides/ is the interception support tree (terminal shims, JVM agent, frida,
# webextension). Upstream reads it off disk at APP_ROOT/overrides, so it has to be
# embedded too - the binary extracts both archives on startup. -p keeps the +x bits
# on the shims in overrides/path.
( cd httptoolkit-server \
&& npm ci \
&& npm install --no-save tar@^7 \
&& tar -czf ui.tar.gz -C ../httptoolkit-ui/dist . \
&& tar -czpf overrides.tar.gz -C overrides . \
&& rm -rf ui && cp -r ../httptoolkit-ui/dist ui )
echo "==> Patching installed deps for bun"
bash scripts/patch-node-modules.sh
echo "==> Compiling single-file binary -> dist/httptoolkit"
mkdir -p dist
( cd httptoolkit-server && bun build ./htk-entry.ts --compile --outfile "$ROOT/dist/httptoolkit" )