fix: update subproject commit and change publish provider to generic
This commit is contained in:
2
cinny
2
cinny
Submodule cinny updated: b08b4b4129...a713141420
@@ -101,10 +101,7 @@
|
||||
"shortcutName": "Paarrot"
|
||||
},
|
||||
"publish": {
|
||||
"provider": "github",
|
||||
"owner": "litruv",
|
||||
"repo": "cinny-desktop",
|
||||
"host": "synbox.ruv.wtf:8418",
|
||||
"protocol": "http"
|
||||
"provider": "generic",
|
||||
"url": "http://synbox.ruv.wtf:8418/litruv/cinny-desktop/releases/latest/download"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -571,6 +571,9 @@ ipcMain.handle('get-background-sync-state', async () => {
|
||||
|
||||
// Auto-updater IPC handlers
|
||||
ipcMain.handle('check-for-updates', async () => {
|
||||
if (isDev) {
|
||||
return { success: false, error: 'Updates are not available in development mode' };
|
||||
}
|
||||
try {
|
||||
const result = await autoUpdater.checkForUpdates();
|
||||
return { success: true, data: result };
|
||||
@@ -580,6 +583,9 @@ ipcMain.handle('check-for-updates', async () => {
|
||||
});
|
||||
|
||||
ipcMain.handle('download-update', async () => {
|
||||
if (isDev) {
|
||||
return { success: false, error: 'Updates are not available in development mode' };
|
||||
}
|
||||
try {
|
||||
await autoUpdater.downloadUpdate();
|
||||
return { success: true };
|
||||
@@ -589,6 +595,9 @@ ipcMain.handle('download-update', async () => {
|
||||
});
|
||||
|
||||
ipcMain.handle('install-update', () => {
|
||||
if (isDev) {
|
||||
return { success: false, error: 'Updates are not available in development mode' };
|
||||
}
|
||||
autoUpdater.quitAndInstall(false, true);
|
||||
return { success: true };
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user