Compare commits

..

2 Commits

Author SHA1 Message Date
litruv
cae4296b92 Merge branch 'main' of http://synbox.ruv.wtf:8418/litruv/cinny-desktop
All checks were successful
Build / increment-version (push) Successful in 6s
Build / build-windows (push) Successful in 3m10s
Build / build-linux (push) Successful in 5m31s
Build / create-release (push) Successful in 18s
2026-02-22 01:20:02 +11:00
litruv
232aa3daa7 fix: update subproject commit and change publish provider to generic 2026-02-22 01:19:59 +11:00
3 changed files with 12 additions and 6 deletions

2
cinny

Submodule cinny updated: b08b4b4129...a713141420

View File

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

View File

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