refactor:package build
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
"scripts": {
|
||||
"tsbuild": "tsc",
|
||||
"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",
|
||||
"upx": ".\\dist_modules\\upx.exe .\\ndist\\DeEarthX.exe",
|
||||
"build": "npm run tsbuild&&npm run rollup&&npm run nexe&&npm run upx",
|
||||
"nexe": "nexe -i ./dist/bundle.js --ico Dex.ico --build -t x86-22.13.0 --output ./dist/DeEarthX.exe",
|
||||
"upx": ".\\dist_modules\\upx.exe .\\dist\\DeEarthX.exe",
|
||||
"build": "npm run rollup&&npm run nexe&&npm run upx",
|
||||
"test": "tsc&&node dist/main.js"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@@ -19,7 +19,7 @@ let unzip_path:string = ""
|
||||
if(isDevelopment){
|
||||
unzip_path = join("./","instance/")
|
||||
}else{
|
||||
unzip_path = join(getCurrnetDir().replace("ndist",""),"instance")
|
||||
unzip_path = join(getCurrnetDir().replace("dist",""),"instance")
|
||||
}
|
||||
let zipnamew: string = ""
|
||||
const argv = process.argv.slice(2)[0];
|
||||
|
||||
Reference in New Issue
Block a user