feat(launcher): add maintenance for installed game copies
This commit is contained in:
1 parent
7d68dc0548
commit
ef3648cb13
17 files changed
+672
-24
No files matched your search
@@ -14,6 +14,7 @@ import {
|
||||
TargetFolderInspectionSchema,
|
||||
} from '../schemas/install.ts';
|
||||
import { LabInfoSchema, LaunchStateSchema } from '../schemas/launch.ts';
|
||||
import { MaintenanceInfoSchema, MaintenanceProgressSchema, MaintenanceRequestSchema } from '../schemas/maintenance.ts';
|
||||
import { SettingsPatchSchema, SettingsSchema } from '../schemas/settings.ts';
|
||||
|
||||
/**
|
||||
@@ -114,6 +115,18 @@ export const ipcContract = {
|
||||
input: z.object({ id: CopyIdSchema, name: CopyNameSchema }),
|
||||
output: CopiesSchema,
|
||||
},
|
||||
'copies:maintenanceInfo': {
|
||||
input: z.object({ id: CopyIdSchema }),
|
||||
output: MaintenanceInfoSchema,
|
||||
},
|
||||
'copies:maintain': {
|
||||
input: MaintenanceRequestSchema,
|
||||
output: CopiesSchema,
|
||||
},
|
||||
'copies:cancelMaintenance': {
|
||||
input: z.void(),
|
||||
output: z.void(),
|
||||
},
|
||||
'launch:getState': {
|
||||
input: z.void(),
|
||||
output: LaunchStateSchema,
|
||||
@@ -157,6 +170,7 @@ export const ipcEvents = {
|
||||
'event:install-progress': InstallProgressSchema,
|
||||
'event:launch-state': LaunchStateSchema,
|
||||
'event:copies-changed': CopiesSchema,
|
||||
'event:copy-maintenance': MaintenanceProgressSchema,
|
||||
} as const;
|
||||
|
||||
export type IpcChannel = keyof typeof ipcContract;
|
||||
|
||||
Reference in new issue
Block a user