1
0
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:
s2
2020-09-13 12:48:05 +02:00
parent 9f696e12f9
commit e934617a03
2 changed files with 21 additions and 7 deletions

View File

@@ -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', {