Add auto-update functionality for Electron app

- Integrated `electron-updater` dependency for managing app updates.
- Configured publishing settings with a generic provider and download URL.
- Added `initAutoUpdater` method to handle app updates and implemented it in the main process.
- Updated `package.json` and `package-lock.json` to include `electron-updater` and related dependencies.
This commit is contained in:
natreex
2026-01-15 20:00:25 -05:00
parent da03f221ae
commit 0020b3abbd
3 changed files with 105 additions and 7 deletions

View File

@@ -46,6 +46,7 @@
"autoprefixer": "^10.4.22",
"axios": "^1.13.2",
"bcrypt": "^6.0.0",
"electron-updater": "^6.7.3",
"next": "^16.0.3",
"next-intl": "^4.5.3",
"node-sqlite3-wasm": "^0.8.51",
@@ -110,6 +111,10 @@
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true
},
"publish": {
"provider": "generic",
"url": "https://eritors.com/download/app/desktop"
}
}
}