refactor:package build

This commit is contained in:
Tianpao
2025-07-09 10:54:01 +08:00
parent f2fa0c8bdf
commit 63d318772a
2 changed files with 4 additions and 4 deletions

View File

@@ -9,9 +9,9 @@
"scripts": { "scripts": {
"tsbuild": "tsc", "tsbuild": "tsc",
"rollup": "rollup -c rollup.config.js", "rollup": "rollup -c rollup.config.js",
"nexe": "nexe -i ./ndist/bundle.js --ico Dex.ico --build -t x86-22.13.0 --output ./ndist/DeEarthX.exe", "nexe": "nexe -i ./dist/bundle.js --ico Dex.ico --build -t x86-22.13.0 --output ./dist/DeEarthX.exe",
"upx": ".\\dist_modules\\upx.exe .\\ndist\\DeEarthX.exe", "upx": ".\\dist_modules\\upx.exe .\\dist\\DeEarthX.exe",
"build": "npm run tsbuild&&npm run rollup&&npm run nexe&&npm run upx", "build": "npm run rollup&&npm run nexe&&npm run upx",
"test": "tsc&&node dist/main.js" "test": "tsc&&node dist/main.js"
}, },
"dependencies": { "dependencies": {

View File

@@ -19,7 +19,7 @@ let unzip_path:string = ""
if(isDevelopment){ if(isDevelopment){
unzip_path = join("./","instance/") unzip_path = join("./","instance/")
}else{ }else{
unzip_path = join(getCurrnetDir().replace("ndist",""),"instance") unzip_path = join(getCurrnetDir().replace("dist",""),"instance")
} }
let zipnamew: string = "" let zipnamew: string = ""
const argv = process.argv.slice(2)[0]; const argv = process.argv.slice(2)[0];