File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737 "license" : " MIT" ,
3838 "dependencies" : {
3939 "dot-object" : " ^2.1.5" ,
40- "electron-store" : " ^10.1.0"
40+ "electron-store" : " ^10.1.0" ,
41+ "electron-updater" : " ^6.6.2"
4142 },
4243 "keywords" : [
4344 " storytel" ,
5354 "@babel/preset-env" : " ^7.28.3" ,
5455 "@babel/preset-react" : " ^7.27.1" ,
5556 "@types/dot-object" : " ^2.1.6" ,
56- "@types/electron" : " ^1.4.38" ,
57- "@types/electron-store" : " ^1.3.1" ,
5857 "@types/node" : " ^24.6.0" ,
5958 "concurrently" : " ^7.6.0" ,
60- "electron" : " ^38.1.2 " ,
59+ "electron" : " ^38.2.1 " ,
6160 "electron-builder" : " ^26.0.12" ,
6261 "typescript" : " ^5.9.2"
6362 },
Original file line number Diff line number Diff line change 110110 "confirmMessage" : " Are you sure you want to logout?" ,
111111 "confirmButton" : " Logout" ,
112112 "cancelButton" : " Cancel"
113+ },
114+ "updater" : {
115+ "available" : {
116+ "title" : " Update Available" ,
117+ "message" : " A new version is available:" ,
118+ "download" : " Download" ,
119+ "later" : " Later"
120+ },
121+ "ready" : {
122+ "title" : " Update Ready" ,
123+ "message" : " Update downloaded. Restart to install version:" ,
124+ "restart" : " Restart Now" ,
125+ "later" : " Later"
126+ }
113127 }
114128}
Original file line number Diff line number Diff line change 110110 "confirmMessage" : " Sei sicuro di voler effettuare il logout?" ,
111111 "confirmButton" : " Logout" ,
112112 "cancelButton" : " Annulla"
113+ },
114+ "updater" : {
115+ "available" : {
116+ "title" : " Aggiornamento Disponibile" ,
117+ "message" : " È disponibile una nuova versione:" ,
118+ "download" : " Scarica" ,
119+ "later" : " Più tardi"
120+ },
121+ "ready" : {
122+ "title" : " Aggiornamento Pronto" ,
123+ "message" : " Aggiornamento scaricato. Riavvia per installare la versione:" ,
124+ "restart" : " Riavvia Ora" ,
125+ "later" : " Più tardi"
126+ }
113127 }
114128}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import {WindowManager} from './modules/window';
33import { TrayManager } from './modules/tray' ;
44import { ServerManager } from './modules/server' ;
55import { IpcManager } from './modules/ipc' ;
6+ import { UpdaterManager } from './modules/updater' ;
67import { i18n } from './i18n' ;
78
89const isDev = process . env . NODE_ENV === 'development' ;
@@ -12,6 +13,7 @@ let windowManager: WindowManager;
1213let trayManager : TrayManager ;
1314let serverManager : ServerManager ;
1415let ipcManager : IpcManager ;
16+ let updaterManager : UpdaterManager ;
1517
1618async function initialize ( ) : Promise < void > {
1719 windowManager = new WindowManager ( isDev , isDebug ) ;
@@ -33,6 +35,10 @@ async function initialize(): Promise<void> {
3335
3436 ipcManager = new IpcManager ( serverManager , trayManager ) ;
3537 ipcManager . setupHandlers ( ) ;
38+
39+ // Initialize auto-updater
40+ updaterManager = new UpdaterManager ( mainWindow , isDev ) ;
41+ updaterManager . initialize ( ) ;
3642}
3743
3844// Single instance lock
You can’t perform that action at this time.
0 commit comments