mesh: download fresh binary on every start, kill mesh when goose exits (#8228)

Signed-off-by: Michael Neale <michael.neale@gmail.com>
This commit is contained in:
Michael Neale
2026-04-02 10:50:00 +11:00
committed by GitHub
parent 277b61c410
commit 5b3b331a45
5 changed files with 375 additions and 285 deletions
+1 -2
View File
@@ -126,7 +126,6 @@ type ElectronAPI = {
}>;
startMesh: (args: string[]) => Promise<{ started: boolean; error?: string; pid?: number }>;
stopMesh: () => Promise<{ stopped: boolean }>;
downloadMesh: () => Promise<{ downloaded: boolean; error?: string; binaryPath?: string }>;
selectFileOrDirectory: (defaultPath?: string) => Promise<string | null>;
getBinaryPath: (binaryName: string) => Promise<string>;
readFile: (directory: string) => Promise<FileResponse>;
@@ -218,7 +217,7 @@ const electronAPI: ElectronAPI = {
checkMesh: () => ipcRenderer.invoke('check-mesh'),
startMesh: (args: string[]) => ipcRenderer.invoke('start-mesh', args),
stopMesh: () => ipcRenderer.invoke('stop-mesh'),
downloadMesh: () => ipcRenderer.invoke('download-mesh'),
selectFileOrDirectory: (defaultPath?: string) =>
ipcRenderer.invoke('select-file-or-directory', defaultPath),
getBinaryPath: (binaryName: string) => ipcRenderer.invoke('get-binary-path', binaryName),