From 5dbff6520315a6019a05ab87cc659c50241a480b Mon Sep 17 00:00:00 2001 From: 15736060610 <15736060610@139.com> Date: Sat, 14 Feb 2026 12:45:35 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20package.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 5565756..ba1dc5d 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,28 @@ { - "name": "deearthx-v3", - "version": "1.0.0", - "description": "main", + "name": "deearthx-v3", // 项目名称 + "version": "1.0.0", // 项目版本号 + "description": "main", // 项目描述 + + // Git 仓库信息 "repository": { "type": "git", "url": "https://git.xcclyc.cn/15736060610/DeEarthX.git" }, - "license": "ISC", - "author": "Tianpao", - "type": "module", - "main": "./.build/build.js", + + "license": "ISC", // 开源许可证类型 + "author": "XCC", // 项目作者 + + "type": "module", // 使用 ES Module 模块系统 + + "main": "./.build/build.js", // 项目入口文件 + + // npm 脚本命令配置 "scripts": { - "backend":"cd ./backend && npm run build", - "upx":".\\.build\\upx.exe .\\backend\\dist\\core.exe", - "tauri":"cd ./front && npm run tauri build", - "back2front":"node b2f.js b2f", - "build2root":"node b2f.js b2r", - "build":"npm run backend && npm run upx && npm run back2front && npm run tauri && npm run build2root" + "backend": "cd ./backend && npm run build", // 构建后端项目 + "upx": ".\\.build\\upx.exe .\\backend\\dist\\core.exe", // 使用 UPX 压缩后端可执行文件 + "tauri": "cd ./front && npm run tauri build", // 构建前端 Tauri 应用 + "back2front": "node b2f.js b2f", // 将后端文件复制到前端目录 + "build2root": "node b2f.js b2r", // 将安装包移动到根目录 + "build": "npm run backend && npm run upx && npm run back2front && npm run tauri && npm run build2root" // 完整构建流程 } -} +} \ No newline at end of file