Skip to content

2.3.39

Choose a tag to compare

@github-actions github-actions released this 19 Jun 20:25
· 88 commits to main since this release
v2.3.39: okienko aktualizacji in-app (Electron auto-update GUI)

Domkniecie jedynego niepotwierdzonego elementu auto-update — in-game GUI.
- main.js setupAutoUpdate(wc): pelne eventy electron-updater (checking-for-update/
  update-available/download-progress/update-downloaded/error) -> wc.send('uw-update',
  {type,...}) do renderera; ipcMain.on('uw-restart-install') -> autoUpdater.quitAndInstall.
  autoDownload + autoInstallOnAppQuit. checkForUpdates() (bez natywnego notify, GUI przejmuje).
- preload.js (NOWY, contextBridge): window.electronUpdater.on(cb) + restart() + isElectron.
  Bezpieczny most przy contextIsolation:true. Wpiety preload w webPreferences.
- index.html: okienko (dol-lewo, brak kolizji z SMS popup) — _uwRenderUpdate(type,data)
  + _uwUpdateInit() (subskrypcja, idempotentna). Stany: dostepna->pasek pobierania %->
  "Uruchom ponownie by zainstalowac" (quitAndInstall) + "X" chowa. checking/none/error =
  cisza. W wersji web (brak electronUpdater) modul bezczynny.

Test (uruchamialne przez usera):
- dbg_v239_updateui.mjs 14/14 PASS (render wszystkich stanow + przycisk restart +
  subskrypcja eventu + web-bezczynny + ZERO bledow konsoli).
- ELECTRON_TEST=1: real Electron end-to-end -> POC-PROBE hasUpdater/uwBound/hasRender=true,
  main->preload->renderer round-trip (event downloaded -> karta+przycisk widoczne), exit 0.
- dbg_v238_e2e.mjs PASS (modul Numer nietkniety po edycji index.html).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>