wip: packaging

This commit is contained in:
Mylloon 2023-07-28 02:43:42 +02:00
parent 85ac6ad45d
commit 4b6e141c3b
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 1124 additions and 9 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
/node_modules /node_modules
/dist /dist
/dsr-win32-x64

1122
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -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"
} }
} }