This commit is contained in:
Tianpao
2025-12-05 12:19:41 +08:00
parent 1e7affe0e2
commit a0a600eef7
5 changed files with 59 additions and 11 deletions

16
b2f.js Normal file
View File

@@ -0,0 +1,16 @@
import fs from "node:fs";
const args = process.argv.slice(2);
if (args.length !== 1) {
process.exit(1);
}
switch (args[0]) {
case "b2f": //backend to frontend
fs.renameSync("./backend/dist/core.exe", "./front/src-tauri/binaries/core-x86_64-pc-windows-msvc.exe") //后端文件复制
break;
case "b2r": //build to root
fs.renameSync("./front/src-tauri/target/release/bundle/nsis/DeEarthX-V3_0.1.0_x64-setup.exe","./DeEarthX-V3_x64-setup.exe")
break;
}