Add Electron support

This commit is contained in:
Alex Gleason committed 2025-10-23 10:43:44 -05:00
1 parent f89a481c9c
commit fa02679936
25 files changed
+6304 -16

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import { contextBridge, ipcRenderer } from 'electron';
// Expose protected methods that allow the renderer process to use
// ipcRenderer without exposing the entire object
contextBridge.exposeInMainWorld('electron', {
// Platform information
platform: () => ipcRenderer.invoke('get-platform'),
// App version
version: () => ipcRenderer.invoke('get-app-version'),
// Flag to indicate we're running in Electron
isElectron: true,
});