Release 1.0.3: Windows sharp in CI, manual update check, updater IPC
Release / release (push) Failing after 29s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ivan Fontosh
2026-05-12 07:30:03 +08:00
parent e165a41180
commit e4b989c60f
9 changed files with 261 additions and 8 deletions
+22 -1
View File
@@ -18,6 +18,10 @@ export const ipcChannels = {
quit: 'app.quit',
getVersion: 'app.getVersion',
},
updater: {
check: 'updater.check',
downloadAndRestart: 'updater.downloadAndRestart',
},
project: {
list: 'project.list',
create: 'project.create',
@@ -84,6 +88,15 @@ export type ZipProgressEvent = {
detail?: string;
};
export type UpdaterCheckResponse =
| { outcome: 'not_packaged' }
| { outcome: 'no_license' }
| { outcome: 'current'; currentVersion: string }
| { outcome: 'available'; version: string }
| { outcome: 'error'; message: string };
export type UpdaterDownloadResponse = { ok: true } | { ok: false; message: string };
export type IpcEventMap = {
[ipcChannels.session.stateChanged]: { state: SessionState };
[ipcChannels.effects.stateChanged]: { state: EffectsState };
@@ -101,7 +114,15 @@ export type IpcInvokeMap = {
};
[ipcChannels.app.getVersion]: {
req: Record<string, never>;
res: { version: string; buildNumber: string | null };
res: { version: string; buildNumber: string | null; packaged: boolean };
};
[ipcChannels.updater.check]: {
req: Record<string, never>;
res: UpdaterCheckResponse;
};
[ipcChannels.updater.downloadAndRestart]: {
req: Record<string, never>;
res: UpdaterDownloadResponse;
};
[ipcChannels.project.list]: {
req: Record<string, never>;