mirror of
https://github.com/Pandipipas/scoreko-electron-dev.git
synced 2026-06-06 05:32:06 +00:00
75 lines
1.8 KiB
JSON
75 lines
1.8 KiB
JSON
{
|
|
"name": "scoreko-electron-dev",
|
|
"version": "0.2.0",
|
|
"description": "Electron wrapper to run NodeCG with the scoreko-dev bundle",
|
|
"license": "MIT",
|
|
"private": true,
|
|
"main": "dist/main/main.js",
|
|
"scripts": {
|
|
"clean": "rimraf dist release",
|
|
"typecheck": "tsc --noEmit",
|
|
"build": "npm run clean && tsc -p tsconfig.json && node scripts/copy-assets.mjs",
|
|
"start": "npm run build && electron .",
|
|
"dev": "concurrently -k \"npm:watch\" \"npm:dev:electron\"",
|
|
"watch": "tsc -p tsconfig.json --watch",
|
|
"dev:electron": "wait-on dist/main/main.js && electron .",
|
|
"pack": "npm run build && electron-builder --dir",
|
|
"dist": "npm run build && electron-builder",
|
|
"rebuild:native": "node scripts/rebuild-nodecg-native.mjs",
|
|
"rebuild:electron": "electron-rebuild --version 39.5.1 --module-dir lib/nodecg/workspaces/database-adapter-sqlite-legacy --only better-sqlite3 -f"
|
|
},
|
|
"build": {
|
|
"appId": "com.scoreko.desktop",
|
|
"productName": "Scoreko",
|
|
"directories": {
|
|
"output": "release",
|
|
"buildResources": "static"
|
|
},
|
|
"files": [
|
|
"dist/**",
|
|
"package.json"
|
|
],
|
|
"extraResources": [
|
|
{
|
|
"from": "lib/nodecg",
|
|
"to": "lib/nodecg"
|
|
},
|
|
{
|
|
"from": "static",
|
|
"to": "static"
|
|
}
|
|
],
|
|
"mac": {
|
|
"target": [
|
|
"dmg"
|
|
]
|
|
},
|
|
"linux": {
|
|
"target": [
|
|
"AppImage"
|
|
]
|
|
},
|
|
"win": {
|
|
"target": [
|
|
"nsis"
|
|
]
|
|
}
|
|
},
|
|
"engines": {
|
|
"node": ">=22"
|
|
},
|
|
"dependencies": {
|
|
"source-map-support": "^0.5.21"
|
|
},
|
|
"devDependencies": {
|
|
"@electron/rebuild": "^3.7.1",
|
|
"@types/node": "^22.10.5",
|
|
"concurrently": "^9.1.2",
|
|
"electron": "39.5.1",
|
|
"electron-builder": "^25.1.8",
|
|
"rimraf": "^6.0.1",
|
|
"typescript": "^5.7.3",
|
|
"wait-on": "^8.0.1"
|
|
}
|
|
}
|