support github push

This commit is contained in:
Will Chen
2025-04-14 22:11:11 -07:00
parent 05a97d31c4
commit d55d6781a6
4 changed files with 126 additions and 1 deletions

View File

@@ -603,6 +603,18 @@ export class IpcClient {
return { success: false, error: error.message || "Unknown error" };
}
}
// Sync (push) local repo to GitHub
public async syncGithubRepo(
appId: number
): Promise<{ success: boolean; error?: string }> {
try {
const result = await this.ipcRenderer.invoke("github:push", { appId });
return result;
} catch (error: any) {
return { success: false, error: error.message || "Unknown error" };
}
}
// --- End GitHub Repo Management ---
// Example methods for listening to events (if needed)