Files
scoreko-dev/electron/package.json
T
Pandipipas 9820130f46 Agregar wrapper de Electron para ejecutar el bundle como app de escritorio (#36)
* Add Electron wrapper for running bundle as desktop app

* Fix Electron wrapper Node runtime mismatch with NodeCG

* Bump Electron wrapper to 39.5.1 and update docs

* Clarify runtime behavior in troubleshooting docs

* Make electron npm scripts cross-platform with cross-env

* Default NodeCG launch to system Node; keep Electron-node as opt-in

* Add Electron better-sqlite3 rebuild scripts for ABI issues

* Update default Electron URL to dashboard standalone example
2026-02-10 16:42:26 +01:00

20 lines
859 B
JSON

{
"name": "scoreko-dev-electron-wrapper",
"version": "1.0.0",
"private": true,
"description": "Electron wrapper para ejecutar Scoreko como app de escritorio.",
"type": "module",
"main": "main.mjs",
"scripts": {
"start": "cross-env electron .",
"start:dev": "cross-env NODECG_ROOT=../.. ELECTRON_START_URL=http://localhost:9090/bundles/scoreko-dev/dashboard/example/main.html?standalone=true electron .",
"start:electron-node": "cross-env NODECG_USE_ELECTRON_NODE=1 electron .",
"rebuild:better-sqlite3:electron": "npm --prefix ../.. rebuild better-sqlite3 --runtime=electron --target=39.5.1 --dist-url=https://electronjs.org/headers",
"start:electron-node:rebuild": "npm run rebuild:better-sqlite3:electron && npm run start:electron-node"
},
"devDependencies": {
"electron": "39.5.1",
"cross-env": "^7.0.3"
}
}