Name | Project Address |
---|---|
Pake | https://github.com/tw93/Pake |
Supports Mac / Windows / Linux. For information on common package downloads, command line packaging, and custom development, refer to the documentation below. You are also welcome to join the discussion forum for communication.
Features#
🎐 Compared to traditional Electron packaging, it is nearly 20 times smaller, around 5MB.
🚀 Pake uses the Rust Tauri framework as its underlying technology, providing a faster and more lightweight performance compared to JS frameworks, with much smaller memory usage.
📦 It is not just a simple packaging tool, but also supports features such as shortcut key pass-through, immersive windows, dragging, style modification, ad blocking, and customization of minimalist product style.
👻 It is just a simple toy, replacing the old approach of packaging web pages with Rust, although PWA is also good.
Package xLog Personal Homepage#
Create a virtual environment:#
python3 -m venv myenv
Activate the virtual environment:#
source myenv/bin/activate
Install using npm#
npm install -g pake-cli
Find the installation path of Pake#
npm bin -g
Edit the configuration file#
nano ~/.bash_profile
Add the PATH environment variable#
Add the following line at the end of the file: (the address may vary)
export PATH=$PATH:/Users/geek/.npm-packages/bin
Press Ctrl
and X
, then Y
to save and exit.
Reload the Bash configuration file#
source ~/.bash_profile
Generate the desktop application#
Let's try it with my xLog homepage (it may be slow the first time, but it will be faster afterwards)
pake https://x.geekbb.ml --name Geek --transparent
*If you encounter rustc errors, please see the end of the text
Demo#
GIF loading...
However, the default icon is not ideal. Let's find a website to convert a JPG to ICNS.
👉JPG to ICNS - Online Image Converter (aconvert.com)
- For MacOS, the icon must be in
.icns
format.- For Windows, the icon must be in
.ico
format.- For Linux, the icon must be in
.png
format.
Change the default icon#
Add: --icon <path>
at the end
pake https://x.geekbb.ml --name Geek --transparent --icon /Users/geek/Documents/123/Geek.icns
Package Chatbot UI#
Chatbot UI is deployed locally, so it can be packaged to avoid entering the website URL every time.
pake http://192.168.2.100:3000 --name Chatbot --transparent --icon /Users/geek/Documents/123/chatgpt.icns
Demo#
GIF loading...
If you encounter the error "zsh: command not found: rustc"👇
- Open the terminal and execute the following commands one by one:
curl --proto '=https' --tlsv 1.2 -sSf https://sh.rustup.rs | sh
- Open the terminal and enter the following command to open the terminal's configuration file:
nano ~/.zshrc
- Add the following code at the end of the opened file:
export PATH="$HOME/.cargo/bin:$PATH"
-
This command adds
$HOME/.cargo/bin
to the PATH environment variable. -
Press
Control + X
, then pressY
to save the changes and exit. -
Enter the following command to update the terminal's configuration file:
source ~/.zshrc