wip: packaging
This commit is contained in:
parent
85ac6ad45d
commit
4b6e141c3b
3 changed files with 1124 additions and 9 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
/node_modules
|
/node_modules
|
||||||
/dist
|
/dist
|
||||||
|
/dsr-win32-x64
|
||||||
|
|
1122
package-lock.json
generated
1122
package-lock.json
generated
File diff suppressed because it is too large
Load diff
10
package.json
10
package.json
|
@ -2,10 +2,11 @@
|
||||||
"name": "dsr",
|
"name": "dsr",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Discord share",
|
"description": "Discord share",
|
||||||
"main": "main.js",
|
"main": "./dist/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npx tsc",
|
"build": "rm -rf ./dist 2> /dev/null; npx tsc",
|
||||||
"start": "npm run build && electron ./dist/main.js"
|
"start": "npm run build && electron ./dist/main.js",
|
||||||
|
"package": "npm run build && npx electron-packager . --platform=win32 --arch=x64"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -20,6 +21,7 @@
|
||||||
"typescript": "^5.1.6"
|
"typescript": "^5.1.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"electron": "^25.3.2"
|
"electron": "^25.3.2",
|
||||||
|
"electron-packager": "^17.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue