更新 package.json

This commit is contained in:
2026-02-14 12:45:35 +00:00
parent 85d64bdff2
commit 5dbff65203

View File

@@ -1,21 +1,28 @@
{ {
"name": "deearthx-v3", "name": "deearthx-v3", // 项目名称
"version": "1.0.0", "version": "1.0.0", // 项目版本号
"description": "main", "description": "main", // 项目描述
// Git 仓库信息
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://git.xcclyc.cn/15736060610/DeEarthX.git" "url": "https://git.xcclyc.cn/15736060610/DeEarthX.git"
}, },
"license": "ISC",
"author": "Tianpao", "license": "ISC", // 开源许可证类型
"type": "module", "author": "XCC", // 项目作者
"main": "./.build/build.js",
"type": "module", // 使用 ES Module 模块系统
"main": "./.build/build.js", // 项目入口文件
// npm 脚本命令配置
"scripts": { "scripts": {
"backend":"cd ./backend && npm run build", "backend": "cd ./backend && npm run build", // 构建后端项目
"upx":".\\.build\\upx.exe .\\backend\\dist\\core.exe", "upx": ".\\.build\\upx.exe .\\backend\\dist\\core.exe", // 使用 UPX 压缩后端可执行文件
"tauri":"cd ./front && npm run tauri build", "tauri": "cd ./front && npm run tauri build", // 构建前端 Tauri 应用
"back2front":"node b2f.js b2f", "back2front": "node b2f.js b2f", // 将后端文件复制到前端目录
"build2root":"node b2f.js b2r", "build2root": "node b2f.js b2r", // 将安装包移动到根目录
"build":"npm run backend && npm run upx && npm run back2front && npm run tauri && npm run build2root" "build": "npm run backend && npm run upx && npm run back2front && npm run tauri && npm run build2root" // 完整构建流程
} }
} }