-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
73 lines (50 loc) · 1.88 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
export interface PlatformMap {
[key: string]: any;
}
export interface PakeCliOptions {
// Application name
name?: string;
// Application icon
icon: string;
// Application window width, default 1200px
width: number;
// Application window height, default 780px
height: number;
// Whether the window is resizable, default true
resizable: boolean;
// Whether the window can be fullscreen, default false
fullscreen: boolean;
// Enable immersive header, default false.
hideTitleBar: boolean;
// Enable windows always on top, default false
alwaysOnTop: boolean;
// Force Mac to use dark mode, default false
darkMode: boolean;
// Disable web shortcuts, default false
disabledWebShortcuts: boolean;
// Set a shortcut key to wake up the app, default empty
activationShortcut: string;
// Custom User-Agent, default off
userAgent: string;
// Enable system tray, default off for macOS, on for Windows and Linux
showSystemTray: boolean;
// Tray icon, default same as app icon for Windows and Linux, macOS requires separate png or ico
systemTrayIcon: string;
// Recursive copy, when url is a local file path, if this option is enabled, the url path file and all its subFiles will be copied to the pake static file folder, default off
useLocalFile: false;
// Multi arch, supports both Intel and M1 chips, only for Mac
multiArch: boolean;
// Package output, valid for Linux users, default is deb, optional appimage, or all (i.e., output both deb and all);
targets: string;
// Debug mode, outputs more logs
debug: boolean;
/** 需要注入页面的外部脚本 */
inject: string[];
/* the domain that can use ipc or tauri javascript sdk */
safeDomain: string[];
// Installer language, valid for Windows users, default is en-US
installerLanguage: string;
}
export interface PakeAppOptions extends PakeCliOptions {
identifier: string;
}