feat(refactor): PluginDefinition::platform (#3665)

This commit is contained in:
Angelos Bouklis
2025-09-05 09:28:17 +03:00
committed by GitHub
parent d329076b52
commit dcc611c7d0
9 changed files with 72 additions and 13 deletions

View File

@ -38,6 +38,13 @@ export type RendererPluginLifecycle<Config, Context, This> =
| PluginLifecycleSimple<Context, This>
| RendererPluginLifecycleExtra<Config, Context, This>;
export enum Platform {
Windows = 1 << 0,
macOS = 1 << 1,
Linux = 1 << 2,
Freebsd = 1 << 3
}
export interface PluginDef<
BackendProperties,
PreloadProperties,
@ -49,6 +56,7 @@ export interface PluginDef<
description?: () => string;
addedVersion?: string;
config?: Config;
platform?: Platform;
menu?: (
ctx: MenuContext<Config>,