BREAKING CHANGE: The launcher stores copy registrations in copies.json. Installations recorded only in install.json must be registered again.
27 lines
840 B
TypeScript
27 lines
840 B
TypeScript
/**
|
|
* Prefixes of the IPC channels the window may use. The preload forwards only these.
|
|
*
|
|
* Dependency-free: the preload runs sandboxed and cannot load packages.
|
|
*/
|
|
|
|
/** Prefixes of renderer → main invoke channels. */
|
|
export const IPC_CHANNEL_PREFIXES = [
|
|
/** The launcher itself: version, folders. */
|
|
'app:',
|
|
/** System dialogs (folder pickers). */
|
|
'dialog:',
|
|
/** Installing the offline version: looking at the chosen folders, copying, patching. */
|
|
'install:',
|
|
/** Listing and managing installed copies. */
|
|
'copies:',
|
|
/** Starting and stopping the active copy. */
|
|
'launch:',
|
|
/** The launcher's own settings. */
|
|
'settings:',
|
|
/** The launcher window itself (it draws its own title bar). */
|
|
'window:',
|
|
] as const;
|
|
|
|
/** Prefix of main → renderer event channels. */
|
|
export const IPC_EVENT_PREFIX = 'event:';
|