From 63d318772a0da9fcec05329d5ed200af0323f046 Mon Sep 17 00:00:00 2001 From: Tianpao Date: Wed, 9 Jul 2025 10:54:01 +0800 Subject: [PATCH] =?UTF-8?q?refactor=EF=BC=9Apackage=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 6 +++--- src/main.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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];