Skip to content

Commit 9843f8f

Browse files
committed
fix(electron): Fix auto-updater provider and missing check
1 parent 16bb7f4 commit 9843f8f

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

electron-builder.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"directories": {
66
"output": "dist-electron"
77
},
8+
"publish": ["github"],
89
"files": [
910
"dist/**/*",
1011
"electron/**/*",

electron/main.cjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,15 @@ app.whenReady().then(async () => {
599599
app.on('activate', function () {
600600
if (BrowserWindow.getAllWindows().length === 0) createWindow();
601601
});
602+
603+
// Check for updates if not in dev mode
604+
if (!isDev) {
605+
try {
606+
autoUpdater.checkForUpdatesAndNotify();
607+
} catch (error) {
608+
console.error('[Electron] Auto-updater error:', error);
609+
}
610+
}
602611
});
603612

604613
app.on('window-all-closed', function () {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "redstring",
33
"private": true,
4-
"version": "0.3.0",
4+
"version": "0.3.1",
55
"author": "Grant Eubanks <grant.w.eubanks@gmail.com>",
66
"description": "Redstring - A semantic knowledge graph application with visual node-based interface, RDF integration, and AI-powered knowledge discovery",
77
"license": "MIT",

0 commit comments

Comments
 (0)