mirror of
https://github.com/Pandipipas/scoreko-electron-dev.git
synced 2026-06-06 05:32:06 +00:00
fix: use bundle dashboard loading screen instead of static loading file (#8)
This commit is contained in:
@@ -14,7 +14,7 @@ Wrapper de Electron para empaquetar una instalación de NodeCG que incluya el bu
|
||||
## Qué hace
|
||||
|
||||
- Arranca `lib/nodecg/index.js` como proceso hijo desde Electron.
|
||||
- Muestra una ventana de carga mientras NodeCG inicia.
|
||||
- Muestra la pantalla de carga propia del bundle (`dashboard/loading.html`) mientras NodeCG inicia.
|
||||
- Carga el dashboard del bundle en `http://localhost:<puerto>/bundles/<bundle>/<ruta-dashboard>`.
|
||||
- Empaqueta NodeCG + assets dentro de la app final con `electron-builder`.
|
||||
|
||||
@@ -29,7 +29,6 @@ scoreko-electron-dev/
|
||||
│ └─ bundles/
|
||||
│ └─ scoreko-dev/
|
||||
├─ src/main/main.ts
|
||||
├─ static/loading.html
|
||||
└─ package.json
|
||||
```
|
||||
|
||||
@@ -68,3 +67,10 @@ Recompila nativos contra Electron 39.5.1:
|
||||
npm run rebuild:native
|
||||
npm run rebuild:better-sqlite3:electron
|
||||
```
|
||||
|
||||
|
||||
## Variables de entorno útiles
|
||||
|
||||
- `NODECG_BUNDLE_NAME` (default: `scoreko-dev`)
|
||||
- `SCOREKO_DASHBOARD_ROUTE` (default: `dashboard/index.html`)
|
||||
- `SCOREKO_LOADING_ROUTE` (default: `dashboard/loading.html`)
|
||||
|
||||
Reference in New Issue
Block a user