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