Skip to content

Commit

Permalink
打包!
Browse files Browse the repository at this point in the history
  • Loading branch information
An-314 committed May 16, 2024
1 parent 6d6b1ec commit a195c37
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ pnpm-debug.log*
*.njsproj
*.sln
*.sw?

dist
18 changes: 15 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
"version": "1.0.0",
"description": "⌈未来式⌋抽卡器",
"main": "main.js",
"bin": "main.js",
"scripts": {
"start": "electron .",
"dist": "electron-builder"
"dist": "electron-builder",
"pkg": "pkg . --out-dir dist"
},
"build": {
"files": [
Expand All @@ -22,8 +24,18 @@
"target": "nsis"
}
},
"pkg": {
"scripts": [
"main.js"
],
"targets": [
"node14-win-x64"
],
"outputPath": "dist"
},
"devDependencies": {
"electron": "^latest",
"electron-builder": "^latest"
"electron": "latest",
"electron-builder": "latest",
"pkg": "latest"
}
}

0 comments on commit a195c37

Please # to comment.