refactor:package build
This commit is contained in:
@@ -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": {
|
||||||
|
|||||||
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user