From 232aa3daa7e171161b79ba6616604842904b0b7f Mon Sep 17 00:00:00 2001 From: litruv Date: Sun, 22 Feb 2026 01:19:59 +1100 Subject: [PATCH] fix: update subproject commit and change publish provider to generic --- cinny | 2 +- electron-builder.json5 | 7 ++----- electron/main.js | 9 +++++++++ 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/cinny b/cinny index b08b4b4..a713141 160000 --- a/cinny +++ b/cinny @@ -1 +1 @@ -Subproject commit b08b4b41298786d3d279f76733f432c0548bad02 +Subproject commit a713141420a39ae267c2575a31f2daf56561f903 diff --git a/electron-builder.json5 b/electron-builder.json5 index 21e02b1..3f99198 100644 --- a/electron-builder.json5 +++ b/electron-builder.json5 @@ -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" } } diff --git a/electron/main.js b/electron/main.js index b0fa9cd..3fe00c2 100644 --- a/electron/main.js +++ b/electron/main.js @@ -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 }; });