feat: first cut at publishing tool

This commit is contained in:
2026-02-26 16:52:29 +01:00
parent 74d6035f4a
commit 1666e6bba9
21 changed files with 976 additions and 39 deletions

View File

@@ -272,6 +272,12 @@ export const electronAPI: ElectronAPI = {
regenerateCalendar: () => ipcRenderer.invoke('blog:regenerateCalendar'),
},
// Site publishing (SCP/rsync)
publish: {
uploadSite: (credentials: { sshHost: string; sshUser: string; sshRemotePath: string; sshMode: 'scp' | 'rsync' }) =>
ipcRenderer.invoke('publish:uploadSite', credentials),
},
menu: {
get: () => ipcRenderer.invoke('menu:get'),
save: (menu: import('./shared/electronApi').MenuDocument) => ipcRenderer.invoke('menu:save', menu),