Files
Pake/bin/README_EN.md
2022-12-29 00:06:59 +08:00

3.4 KiB
Vendored

Install

npm install -g pake-cli

If the installation fails and you are prompted that you do not have permission, please see this website .

Also make sure that you're using a correct Node.js version (^14.13 || >=16.0.0). If you're using nvm for Node.js version management you may run nvm use from the root folder of the project and the correct version will be picked up. Other Node.js version management tools, such as fnm and tj/n, should also have similar feature.

try not to use sudo permissions, If you must use sudo, you need install rust in you system environment. For Mac, you can use brew to install it. For Linux like Ubuntu, you need apt to install it.

Usage

pake url [options]

After the packaging, the application defaults to the current working directory. Since the environment needs to be configured for the first packaging, it will take some time. Please wait patiently.

Note: The Rust environment is required for packaging. If you do not have Rust, you will be prompted to confirm the installation. If the installation fails or times out, you can install it yourself.

url

The url🔗 is the webpage link you need to package, Must be provided.

[options]

Some specific options are provided. When packaging, corresponding parameters can be passed to achieve customized effects.

[name]

The application name, if not specified when entering, will prompt you to enter, input must be English.

--name <value>

[icon]

The application icon, support local and remote files, the default is brand icon of Pake. Customized product icon can go to icon icons Or macOSicons download it.

  • MacOS must be .icns
  • Windows must be .ico
  • Linux must be .png
--icon <path>

[height]

The height of the packaged application window. The default is 780px.

--height <number>

[width]

The width of the packaged application window. The default is 1200px.

--width <number>

[transparent]

Whether to enable the immersive header. The default is false, enter the following command to enable immersive, recommended for MacOS users to enable

--transparent

[resize]

Whether the size can be dragged. The default value is true, the window size cannot be stretched by entering the following command.

--no-resizable

[fullscreen]

Whether to open the full screen after opening the application. The default is false, enter the following command to automatically full screen

--fullscreen <value>

[user-agent]

Custom browser user agent, default is empty.

--user-agent <value>

[show-menu]

Display the menu bar, not display it by default, enter the following command and it will be displayed. MacOS users are recommended to enable.

--show-menu

[show-system-tray]

Display the notification tray, not display it by default, entering the following command will display.

--show-system-tray <value>

[system-tray-icon]

The notification tray icon is only valid when the notification tray is displayed. The icon must be a 512*512 pixel image in .ico or .png format.

--system-tray-icon <value>