This commit is contained in:
@@ -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" )
|
||||
|
||||
Reference in New Issue
Block a user