From 1ce41b66ea4fbfca48df924a9a75646528d48ff9 Mon Sep 17 00:00:00 2001 From: xiongxiao Date: Tue, 23 Dec 2025 13:12:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Tauri=20=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=E6=9E=84=E5=BB=BA=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E5=B9=B6=E4=BF=AE=E5=A4=8D=E5=AE=89=E5=85=A8=E7=AD=96=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 ++- src-tauri/tauri.conf.json | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f41e3cc..31c64a0 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "dev": "vite", "build": "tsc && vite build", "preview": "vite preview", - "tauri": "tauri dev" + "tauri": "tauri dev", + "tauri:build": "tauri build" }, "dependencies": { "react": "^19.2.3", diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index a882293..35ccac2 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -6,19 +6,20 @@ "build": { "beforeDevCommand": "", "devUrl": "http://localhost:51515/root/light-code-center/", - "beforeBuildCommand": "bun run build", + "beforeBuildCommand": "", "frontendDist": "../dist" }, "app": { "windows": [ { + "url": "http://localhost:51515/root/light-code-center/", "title": "tauri-template", "width": 800, "height": 600 } ], "security": { - "csp": null + "csp": "default-src 'self' http://localhost:51515 https://*.kevisual.cn; connect-src 'self' https://* wss://*" } }, "bundle": {