From c1d3f4be67c3ddbdb7b3b57a85c2132fd3911dbc Mon Sep 17 00:00:00 2001 From: CancerAi Date: Sun, 11 Oct 2026 23:37:17 +0800 Subject: [PATCH] =?UTF-8?q?mod:=20=E8=A7=84=E8=8C=83=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E9=A1=B9=E7=9B=AEscripts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e4eb7e4..058eb68 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,11 @@ "type": "module", "private": true, "scripts": { - "dev": "bun run --hot src/index.js" + "dev": "bun run --hot src/index.ts", + "clean": "rm -rf ./build && rm -rf ./.*.bun-build", + "build-macos": "mkdir -p build && bun build src/index.ts --compile --minify --outfile build/macos_app", + "build-linux-x86": "bun build src/index.ts --compile --minify --target=bun-linux-x64 --outfile build/linux_x86_app", + "build-linux-arm64": "bun build src/index.ts --compile --minify --target=bun-linux-arm64 --outfile build/linux_arm64_app" }, "devDependencies": { "@types/bun": "latest" @@ -15,4 +19,4 @@ "dependencies": { "hono": "^4.13.13" } -} +} \ No newline at end of file