diff --git a/package.json b/package.json index 677d94f..aa4acde 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/main.ts b/src/main.ts index 2e7f551..6ee9987 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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];