Skip to content

Commit

Permalink
Build: create a lancher batch file during build
Browse files Browse the repository at this point in the history
This batch file pauses after the program closes, preventing the console window immediately closing when the program encounters exception and crashes
  • Loading branch information
yhsphd committed Jun 2, 2024
1 parent 25e5dba commit f08eff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"clean": "rimraf dist/",
"build": "npm run clean && pkg .",
"build": "npm run clean && pkg . && echo @echo off >> dist/kdc-overlay.cmd && echo kdc-overlay.exe >> dist/kdc-overlay.cmd && echo pause >> dist/kdc-overlay.cmd",
"postinstall": "patch-package",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
"format": "prettier --write ."
Expand Down

0 comments on commit f08eff8

Please sign in to comment.