🔥 Remove configuration menu settings
This commit is contained in:
9
bin/README.md
vendored
9
bin/README.md
vendored
@@ -59,7 +59,6 @@ yarn cli:dev
|
||||
|
||||
The script will reads the above configuration and packages the specified `app` using `watch` mode, and changes to the `pake-cli` code and `pake` are hot updated in real time.
|
||||
|
||||
|
||||
### CLI Usage
|
||||
|
||||
```bash
|
||||
@@ -171,14 +170,6 @@ Customize the browser user agent. Default is empty.
|
||||
--user-agent <value>
|
||||
```
|
||||
|
||||
#### [show-menu]
|
||||
|
||||
Display the menu bar. Default is not to display. Use the following command to enable the menu bar. Recommended for macOS users.
|
||||
|
||||
```shell
|
||||
--show-menu
|
||||
```
|
||||
|
||||
#### [show-system-tray]
|
||||
|
||||
Display the system tray. Default is not to display. Use the following command to enable the system tray.
|
||||
|
||||
8
bin/README_CN.md
vendored
8
bin/README_CN.md
vendored
@@ -172,14 +172,6 @@ Linux,默认为 `all`。
|
||||
--user-agent <value>
|
||||
```
|
||||
|
||||
#### [show-menu]
|
||||
|
||||
设置是否显示菜单栏,默认不显示。在 macOS 上推荐启用此选项。
|
||||
|
||||
```shell
|
||||
--show-menu
|
||||
```
|
||||
|
||||
#### [show-system-tray]
|
||||
|
||||
设置是否显示通知栏托盘,默认不显示。
|
||||
|
||||
1
bin/cli.ts
vendored
1
bin/cli.ts
vendored
@@ -32,7 +32,6 @@ program
|
||||
.option('--transparent', 'Only for Mac, hide title bar', DEFAULT.transparent)
|
||||
.option('--fullscreen', 'Start in full screen', DEFAULT.fullscreen)
|
||||
.option('--user-agent <string>', 'Custom user agent', DEFAULT.userAgent)
|
||||
.option('--show-menu', 'Show menu in app', DEFAULT.showMenu)
|
||||
.option('--show-system-tray', 'Show system tray in app', DEFAULT.showSystemTray)
|
||||
.option('--system-tray-icon <string>', 'Custom system tray icon', DEFAULT.systemTrayIcon)
|
||||
.option('--iter-copy-file', 'Copy files when URL is a local file', DEFAULT.iterCopyFile)
|
||||
|
||||
1
bin/defaults.ts
vendored
1
bin/defaults.ts
vendored
@@ -8,7 +8,6 @@ export const DEFAULT_PAKE_OPTIONS: PakeCliOptions = {
|
||||
resizable: true,
|
||||
transparent: false,
|
||||
userAgent: '',
|
||||
showMenu: false,
|
||||
showSystemTray: false,
|
||||
multiArch: false,
|
||||
targets: 'deb',
|
||||
|
||||
2
bin/helpers/merge.ts
vendored
2
bin/helpers/merge.ts
vendored
@@ -14,7 +14,6 @@ export async function mergeConfig(url: string, options: PakeAppOptions, tauriCon
|
||||
fullscreen,
|
||||
transparent,
|
||||
userAgent,
|
||||
showMenu,
|
||||
showSystemTray,
|
||||
systemTrayIcon,
|
||||
iterCopyFile,
|
||||
@@ -103,7 +102,6 @@ export async function mergeConfig(url: string, options: PakeAppOptions, tauriCon
|
||||
tauriConf.pake.user_agent[currentPlatform] = userAgent;
|
||||
}
|
||||
|
||||
tauriConf.pake.menu[currentPlatform] = showMenu;
|
||||
tauriConf.pake.system_tray[currentPlatform] = showSystemTray;
|
||||
|
||||
// Processing targets are currently only open to Linux.
|
||||
|
||||
3
bin/types.ts
vendored
3
bin/types.ts
vendored
@@ -27,9 +27,6 @@ export interface PakeCliOptions {
|
||||
// Custom User-Agent, default off
|
||||
userAgent: string;
|
||||
|
||||
// Enable menu bar, default on for macOS, off for Windows and Linux
|
||||
showMenu: boolean;
|
||||
|
||||
// Enable system tray, default off for macOS, on for Windows and Linux
|
||||
showSystemTray: boolean;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user