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:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user