Convert Windows app to Electron and add Android Capacitor app with CI builds

This commit is contained in:
southseact-3d
2026-02-16 09:40:31 +00:00
parent 14f59c2f56
commit ca4bc9184d
13 changed files with 766 additions and 84 deletions

View File

@@ -0,0 +1,10 @@
const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('windowsAppBridge', {
saveApiKey: (token) => ipcRenderer.invoke('save-api-key', token),
persistApp: (app) => ipcRenderer.invoke('persist-app', app),
listApps: () => ipcRenderer.invoke('list-apps'),
syncApp: (appId) => ipcRenderer.invoke('sync-app', appId),
runOpencodeTask: (appId, taskName, args) =>
ipcRenderer.invoke('run-opencode-task', appId, taskName, args || []),
});