mirror of
https://github.com/S2-/gitlit
synced 2025-08-02 20:30:05 +02:00
ask if the update should be downloaded
This commit is contained in:
@@ -26,9 +26,9 @@ if (process.platform === 'win32') {
|
||||
gau.onUpdateAvailable = (version, asset) => {
|
||||
win.webContents.send('update', {
|
||||
event: 'updateAvailable',
|
||||
version: version
|
||||
version: version,
|
||||
asset: asset
|
||||
});
|
||||
gau.downloadNewVersion(asset);
|
||||
};
|
||||
|
||||
gau.onNewVersionReadyToInstall = (file) => {
|
||||
@@ -38,6 +38,10 @@ if (process.platform === 'win32') {
|
||||
});
|
||||
};
|
||||
|
||||
ipcMain.on('downloadUpdate', (event, asset) => {
|
||||
gau.downloadNewVersion(asset);
|
||||
});
|
||||
|
||||
ipcMain.on('installUpdate', (event, file) => {
|
||||
gau.executeUpdate(file);
|
||||
win.webContents.send('update', {
|
||||
|
Reference in New Issue
Block a user