From cf1ba2976cae1a02020347478db29b1e484a9556 Mon Sep 17 00:00:00 2001 From: madomado Date: Sun, 31 Mar 2024 12:26:41 +0800 Subject: [PATCH] Update arrpc.spec Signed-off-by: madomado --- anda/misc/arrpc/arrpc.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anda/misc/arrpc/arrpc.spec b/anda/misc/arrpc/arrpc.spec index 643d739797..0654bb1524 100644 --- a/anda/misc/arrpc/arrpc.spec +++ b/anda/misc/arrpc/arrpc.spec @@ -27,8 +27,8 @@ sed -i -E 's@server\.on[^\n]+;@\0}\nmain();@' src/index.js %build npm i esbuild pkg -npx esbuild --bundle --platform=node --target=node18 --outdir=dist ./src/index.js -npx pkg -t node18-linux-x64 -o arrpc ./dist/index.js +npx esbuild --bundle --platform=node --target=node18 --outfile=bundle.js ./src/index.js +npx pkg -t node18-linux-x64 -o arrpc bundle.js %install install -D -m755 arrpc %buildroot%_bindir/arrpc