fix: update subproject commit and change publish provider to generic

This commit is contained in:
litruv
2026-02-22 01:19:59 +11:00
parent b570d3e992
commit 232aa3daa7
3 changed files with 12 additions and 6 deletions

2
cinny

Submodule cinny updated: b08b4b4129...a713141420

View File

@@ -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"
}
}

View File

@@ -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 };
});