Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

Most documents have been updated

Tw93c762f3cc26a7
diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml
index 0826f8fa..bcf71389 100644
--- a/.github/ISSUE_TEMPLATE/bug-report.yml
+++ b/.github/ISSUE_TEMPLATE/bug-report.yml
@@ -28,14 +28,33 @@ body:
attributes:
label: Pake version
description: >
- Please provide the version of Pake you are using. If you are using the main/dev branch, please provide the commit id.
+ Please provide the version of Pake you are using (e.g., `pake --version`). If you are using the main/dev branch, please provide the commit id.
+ validations:
+ required: true
+ - type: textarea
+ attributes:
+ label: Rust version
+ description: >
+ Please provide the Rust version (e.g., `rustc --version`). This is critical for build issues.
+ validations:
+ required: true
+ - type: dropdown
+ attributes:
+ label: Package Manager
+ description: Which package manager are you using?
+ options:
+ - npm
+ - pnpm
+ - yarn
+ - bun
+ - other
validations:
required: true
- type: textarea
attributes:
label: System version
description: >
- Please provide the version of System you are using.
+ Please provide the version of System you are using (e.g., macOS 14.2, Windows 11, Ubuntu 24.04).
validations:
required: true
- type: textarea
@@ -45,6 +64,13 @@ body:
Please provide the Node.js version.
validations:
required: true
+ - type: textarea
+ attributes:
+ label: Build Command
+ description: >
+ Please provide the exact command you used to build the app (e.g., `pake https://github.com --name GitHub`).
+ validations:
+ required: true
- type: textarea
attributes:
label: Minimal reproduce step
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index ace09a85..58a91aed 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -21,7 +21,7 @@ graph LR
### Prerequisites
-- Node.js ≥22.0.0 (recommended LTS, older versions ≥16.0.0 may work)
+- Node.js ≥22.0.0 (recommended LTS, older versions ≥18.0.0 may work)
- Rust ≥1.85.0 (required for edition2024 support in dependencies)
- Platform-specific build tools:
- **macOS**: Xcode Command Line Tools (`xcode-select --install`)
diff --git a/README_CN.md b/README_CN.md
index 8b3dc8ed..9671e65b 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -177,7 +177,7 @@ pake https://weekly.tw93.fun --name Weekly --icon https://cdn.tw93.fun/pake/week
## 定制开发
-需要 Rust `>=1.89` 和 Node `>=22`,详细安装指南参考 [Tauri 文档](https://tauri.app/start/prerequisites/)。不熟悉开发环境建议直接使用命令行工具。
+需要 Rust `>=1.85` 和 Node `>=22`,详细安装指南参考 [Tauri 文档](https://tauri.app/start/prerequisites/)。不熟悉开发环境建议直接使用命令行工具。
```bash
# 安装依赖
diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md
index 4071638d..2cd7c9d9 100644
--- a/docs/advanced-usage.md
+++ b/docs/advanced-usage.md
@@ -159,7 +159,7 @@ Understanding Pake's codebase structure will help you navigate and contribute ef
### Prerequisites
- Node.js ≥22.0.0 (recommended LTS, older versions ≥18.0.0 may work)
-- Rust ≥1.89.0 (recommended stable, older versions ≥1.78.0 may work)
+- Rust ≥1.85.0 (recommended stable)
#### Platform-Specific Requirements
diff --git a/docs/advanced-usage_CN.md b/docs/advanced-usage_CN.md
index 67cef515..056cedb9 100644
--- a/docs/advanced-usage_CN.md
+++ b/docs/advanced-usage_CN.md
@@ -159,7 +159,7 @@ pake ./my-app/index.html --name my-static-app --use-local-file
### 前置条件
- Node.js ≥22.0.0 (推荐 LTS,较旧版本 ≥18.0.0 可能可用)
-- Rust ≥1.89.0 (推荐稳定版,较旧版本 ≥1.78.0 可能可用)
+- Rust ≥1.85.0 (推荐稳定版)
#### 平台特定要求
diff --git a/docs/cli-usage.md b/docs/cli-usage.md
index 213f7999..413f1227 100644
--- a/docs/cli-usage.md
+++ b/docs/cli-usage.md
@@ -35,8 +35,8 @@ source ~/.bashrc
**Prerequisites:**
- Node.js ≥18.0.0
-- Rust ≥1.78.0 (installed automatically if missing)
-- **Windows/Linux**: See [system dependencies guide](advanced-usage.md#prerequisites) for platform-specific requirements
+- Rust ≥1.85.0 (installed automatically if missing)
+- **macOS/Linux**: `curl`, `wget`, `file` and `tar` used for dependency management
## Quick Start
diff --git a/docs/cli-usage_CN.md b/docs/cli-usage_CN.md
index cb2add62..c3bbf8de 100644
--- a/docs/cli-usage_CN.md
+++ b/docs/cli-usage_CN.md
@@ -35,8 +35,8 @@ source ~/.bashrc
**前置条件:**
- Node.js ≥18.0.0
-- Rust ≥1.78.0(如缺失将自动安装)
-- **Windows/Linux**:详细系统依赖请参考 [高级用法指南](advanced-usage_CN.md#前置条件)
+- Rust ≥1.85.0(如缺失将自动安装)
+- **macOS/Linux**:`curl`、`wget`、`file` 和 `tar`(用于依赖管理)
## 快速开始
diff --git a/docs/faq.md b/docs/faq.md
index a5897413..49d86657 100644
--- a/docs/faq.md
+++ b/docs/faq.md
@@ -4,6 +4,26 @@
Common issues and solutions when using Pake.
+## Table of Contents
+
+- [Build Issues](#build-issues)
+ - [Rust Version Error: "feature 'edition2024' is required"](#rust-version-error-feature-edition2024-is-required)
+ - [Linux: Build Error "Can't detect any appindicator library" on Ubuntu 24.04](#linux-build-error-cant-detect-any-appindicator-library-on-ubuntu-2404)
+ - [Linux: AppImage Build Fails with "failed to run linuxdeploy"](#linux-appimage-build-fails-with-failed-to-run-linuxdeploy)
+ - [Linux: "cargo: command not found" After Installing Rust](#linux-cargo-command-not-found-after-installing-rust)
+ - [Windows: Installation Timeout During First Build](#windows-installation-timeout-during-first-build)
+ - [Windows: Missing Visual Studio Build Tools](#windows-missing-visual-studio-build-tools)
+ - [macOS: Build Fails with Module Compilation Errors](#macos-build-fails-with-module-compilation-errors)
+- [Runtime Issues](#runtime-issues)
+ - [App Window is Too Small/Large](#app-window-is-too-smalllarge)
+ - [App Icon Not Showing Correctly](#app-icon-not-showing-correctly)
+ - [Website Features Not Working (Login, Upload, etc.)](#website-features-not-working-login-upload-etc)
+- [Installation Issues](#installation-issues)
+ - [Permission Denied When Installing Globally](#permission-denied-when-installing-globally)
+- [Getting Help](#getting-help)
+
+---
+
## Build Issues
### Rust Version Error: "feature 'edition2024' is required"
@@ -15,7 +35,7 @@ When building Pake or using the CLI, you encounter an error like:
error: failed to parse manifest
Caused by:
feature `edition2024` is required
- this Cargo does not support nightly features, but if you switch to nightly channel you can add `cargo-features = ["edition2024"]`
+ this Cargo does not support nightly features, but if you switch to nightly channel you can add `cargo-features = ["edition2024"]
to enable this feature
```
@@ -56,54 +76,28 @@ See [CONTRIBUTING.md](../CONTRIBUTING.md) for complete prerequisites.
---
-### Windows: Installation Timeout During First Build
+### Linux: Build Error "Can't detect any appindicator library" on Ubuntu 24.04
**Problem:**
-When building for the first time on Windows, you may encounter:
+When building on Ubuntu 24.04 or newer, you may encounter:
```txt
-Error: Command timed out after 900000ms: "cd ... && pnpm install"
+Can't detect any appindicator library
```
-**Why This Happens:**
-
-First-time installation on Windows can be slow due to:
-
-- Native module compilation (requires Visual Studio Build Tools)
-- Large dependency downloads (Tauri, Rust toolchain)
-- Windows Defender real-time scanning
-- Network connectivity issues
+Or potentially errors related to Icon RGBA in older versions.
-**Solution 1: Automatic Retry (Built-in)**
-
-Pake CLI now automatically retries with CN mirror if the initial installation times out. Simply wait for the retry to complete.
+**Solution:**
-**Solution 2: Manual Installation**
+Ubuntu 24.04+ replaced `libappindicator3-dev` with `libayatana-appindicator3-dev`.
-If automatic retry fails, manually install dependencies:
+Install the correct dependency:
```bash
-# Navigate to pake-cli installation directory
-cd %LOCALAPPDATA%\pnpm\global\5\.pnpm\pake-cli@VERSION\node_modules\pake-cli
-
-# Install with CN mirror
-pnpm install --registry=https://registry.npmmirror.com
-
-# Then retry your build
-pake https://github.com --name GitHub
+sudo apt-get update
+sudo apt-get install -y libayatana-appindicator3-dev
```
-**Solution 3: Improve Network Speed**
-
-- Use a stable network connection
-- Temporarily disable antivirus software during installation
-- Use a VPN or proxy if needed
-
-**Expected Time:**
-
-- First installation: 10-15 minutes on Windows
-- Subsequent builds: Much faster (dependencies cached)
-
---
### Linux: AppImage Build Fails with "failed to run linuxdeploy"
@@ -207,24 +201,53 @@ Then try building again.
---
-### macOS: Build Fails with Module Compilation Errors
+### Windows: Installation Timeout During First Build
**Problem:**
-On macOS 26 Beta or newer, you may see errors related to `CoreFoundation` or `_Builtin_float` modules.
+When building for the first time on Windows, you may encounter:
-**Solution:**
+```txt
+Error: Command timed out after 900000ms: "cd ... && pnpm install"
+```
-Create a configuration file to use compatible SDK:
+**Why This Happens:**
+
+First-time installation on Windows can be slow due to:
+
+- Native module compilation (requires Visual Studio Build Tools)
+- Large dependency downloads (Tauri, Rust toolchain)
+- Windows Defender real-time scanning
+- Network connectivity issues
+
+**Solution 1: Automatic Retry (Built-in)**
+
+Pake CLI now automatically retries with CN mirror if the initial installation times out. Simply wait for the retry to complete.
+
+**Solution 2: Manual Installation**
+
+If automatic retry fails, manually install dependencies:
```bash
-cat > src-tauri/.cargo/config.toml << 'EOF'
-[env]
-MACOSX_DEPLOYMENT_TARGET = "15.0"
-SDKROOT = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
-EOF
+# Navigate to pake-cli installation directory
+cd %LOCALAPPDATA%\pnpm\global\5\.pnpm\pake-cli@VERSION\node_modules\pake-cli
+
+# Install with CN mirror
+pnpm install --registry=https://registry.npmmirror.com
+
+# Then retry your build
+pake https://github.com --name GitHub
```
-This file is already in `.gitignore` and won't be committed.
+**Solution 3: Improve Network Speed**
+
+- Use a stable network connection
+- Temporarily disable antivirus software during installation
+- Use a VPN or proxy if needed
+
+**Expected Time:**
+
+- First installation: 10-15 minutes on Windows
+- Subsequent builds: Much faster (dependencies cached)
---
@@ -243,6 +266,27 @@ Install Visual Studio Build Tools:
---
+### macOS: Build Fails with Module Compilation Errors
+
+**Problem:**
+On macOS 26 Beta or newer, you may see errors related to `CoreFoundation` or `_Builtin_float` modules.
+
+**Solution:**
+
+Create a configuration file to use compatible SDK:
+
+```bash
+cat > src-tauri/.cargo/config.toml << 'EOF'
+[env]
+MACOSX_DEPLOYMENT_TARGET = "15.0"
+SDKROOT = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
+EOF
+```
+
+This file is already in `.gitignore` and won't be committed.
+
+---
+
## Runtime Issues
### App Window is Too Small/Large
@@ -350,33 +394,4 @@ If your issue isn't covered here:
- Your OS and version
- Node.js and Rust versions (`node --version`, `rustc --version`)
- Complete error message
- - Build command you used
-
-### Linux: Build fails with `Can't detect any appindicator library`
-
-**Issue:**
-When packaging on Linux, the build fails with the following error:
-
-```txt
-Can't detect any appindicator library
-```
-
-**Cause:**
-This error means that your Linux system is missing `libappindicator`, a core library required to create system tray icons. Pake-packaged applications support the system tray feature, so this library is a required dependency.
-
-**Solution:**
-You need to install the missing development library on your Linux system.
-
-- **For Debian / Ubuntu systems:**
-
- ```bash
- sudo apt-get update && sudo apt-get install -y libappindicator3-dev
- ```
-
-- **For Fedora / CentOS / RHEL systems:**
-
- ```bash
- sudo dnf install -y libappindicator-devel
- ```
-
-To ensure a complete build environment, we recommend installing all of Tauri's required dependencies at once. Please refer to the solution for the `failed to run linuxdeploy` issue in this document, which includes a comprehensive list of dependencies.
+ - Build command you used
\ No newline at end of file
diff --git a/docs/faq_CN.md b/docs/faq_CN.md
index 0b4a9720..1d74b439 100644
--- a/docs/faq_CN.md
+++ b/docs/faq_CN.md
@@ -4,9 +4,29 @@
使用 Pake 时的常见问题和解决方案。
+## 目录
+
+- [构建问题](#构建问题)
+ - [Rust 版本错误:"feature 'edition2024' is required"](#rust-版本错误feature-edition2024-is-required)
+ - [Linux:Ubuntu 24.04 构建报错 "Can't detect any appindicator library"](#linuxubuntu-2404-构建报错-cant-detect-any-appindicator-library)
+ - [Linux:AppImage 构建失败,提示 "failed to run linuxdeploy"](#linuxappimage-构建失败提示-failed-to-run-linuxdeploy)
+ - [Linux:"cargo: command not found" 即使已安装 Rust](#linuxcargo-command-not-found-即使已安装-rust)
+ - [Windows:首次构建时安装超时](#windows首次构建时安装超时)
+ - [Windows:缺少 Visual Studio 构建工具](#windows缺少-visual-studio-构建工具)
+ - [macOS:构建失败,出现模块编译错误](#macos构建失败出现模块编译错误)
+- [运行时问题](#运行时问题)
+ - [应用窗口太小/太大](#应用窗口太小太大)
+ - [应用图标显示不正确](#应用图标显示不正确)
+ - [网站功能不工作(登录、上传等)](#网站功能不工作登录上传等)
+- [安装问题](#安装问题)
+ - [全局安装时权限被拒绝](#全局安装时权限被拒绝)
+- [获取帮助](#获取帮助)
+
+---
+
## 构建问题
-### Rust 版本错误:"feature 'edition2024' is required"
+### Rust 版本错误:"feature 'edition2024' is required"
**问题描述:**
在构建 Pake 或使用 CLI 时,遇到如下错误:
@@ -56,54 +76,28 @@ rustc --version
---
-### Windows:首次构建时安装超时
+### Linux:Ubuntu 24.04 构建报错 "Can't detect any appindicator library"
**问题描述:**
-在 Windows 上首次构建时,可能遇到:
+在 Ubuntu 24.04 或更新版本上构建时,可能遇到以下错误:
```txt
-Error: Command timed out after 900000ms: "cd ... && pnpm install"
+Can't detect any appindicator library
```
-**原因分析:**
-
-Windows 首次安装可能较慢,原因包括:
-
-- 本地模块编译(需要 Visual Studio Build Tools)
-- 大量依赖下载(Tauri、Rust 工具链)
-- Windows Defender 实时扫描
-- 网络连接问题
-
-**解决方案 1:自动重试(内置)**
+或者在之前的版本中可能看到关于 Icon RGBA 的报错。
-Pake CLI 现在会在初次安装超时后自动使用国内镜像重试。只需等待重试完成即可。
+**解决方案:**
-**解决方案 2:手动安装依赖**
+这是因为 Ubuntu 24.04+ 使用 `libayatana-appindicator3-dev` 替代了旧的 `libappindicator3-dev`。
-如果自动重试失败,可手动安装依赖:
+请安装正确的依赖库:
```bash
-# 进入 pake-cli 安装目录
-cd %LOCALAPPDATA%\pnpm\global\5\.pnpm\pake-cli@版本号\node_modules\pake-cli
-
-# 使用国内镜像安装
-pnpm install --registry=https://registry.npmmirror.com
-
-# 然后重新构建
-pake https://github.com --name GitHub
+sudo apt-get update
+sudo apt-get install -y libayatana-appindicator3-dev
```
-**解决方案 3:改善网络环境**
-
-- 使用稳定的网络连接
-- 安装过程中临时关闭杀毒软件
-- 必要时使用 VPN 或代理
-
-**预期时间:**
-
-- 首次安装:Windows 上需要 10-15 分钟
-- 后续构建:依赖已缓存,速度会快很多
-
---
### Linux:AppImage 构建失败,提示 "failed to run linuxdeploy"
@@ -187,7 +181,7 @@ docker run --rm --privileged \
---
-### Linux:"cargo: command not found" 即使已安装 Rust
+### Linux:"cargo: command not found" 即使已安装 Rust
**问题描述:**
已安装 Rust 但 Pake 仍然提示 "cargo: command not found"。
@@ -207,24 +201,53 @@ source ~/.cargo/env
---
-### macOS:构建失败,出现模块编译错误
+### Windows:首次构建时安装超时
**问题描述:**
-在 macOS 26 Beta 或更新版本上,可能看到与 `CoreFoundation` 或 `_Builtin_float` 模块相关的错误。
+在 Windows 上首次构建时,可能遇到:
-**解决方案:**
+```txt
+Error: Command timed out after 900000ms: "cd ... && pnpm install"
+```
-创建配置文件以使用兼容的 SDK:
+**原因分析:**
+
+Windows 首次安装可能较慢,原因包括:
+
+- 本地模块编译(需要 Visual Studio Build Tools)
+- 大量依赖下载(Tauri、Rust 工具链)
+- Windows Defender 实时扫描
+- 网络连接问题
+
+**解决方案 1:自动重试(内置)**
+
+Pake CLI 现在会在初次安装超时后自动使用国内镜像重试。只需等待重试完成即可。
+
+**解决方案 2:手动安装依赖**
+
+如果自动重试失败,可手动安装依赖:
```bash
-cat > src-tauri/.cargo/config.toml << 'EOF'
-[env]
-MACOSX_DEPLOYMENT_TARGET = "15.0"
-SDKROOT = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
-EOF
+# 进入 pake-cli 安装目录
+cd %LOCALAPPDATA%\pnpm\global\5\.pnpm\pake-cli@版本号\node_modules\pake-cli
+
+# 使用国内镜像安装
+pnpm install --registry=https://registry.npmmirror.com
+
+# 然后重新构建
+pake https://github.com --name GitHub
```
-此文件已在 `.gitignore` 中,不会被提交。
+**解决方案 3:改善网络环境**
+
+- 使用稳定的网络连接
+- 安装过程中临时关闭杀毒软件
+- 必要时使用 VPN 或代理
+
+**预期时间:**
+
+- 首次安装:Windows 上需要 10-15 分钟
+- 后续构建:依赖已缓存,速度会快很多
---
@@ -243,6 +266,27 @@ EOF
---
+### macOS:构建失败,出现模块编译错误
+
+**问题描述:**
+在 macOS 26 Beta 或更新版本上,可能看到与 `CoreFoundation` 或 `_Builtin_float` 模块相关的错误。
+
+**解决方案:**
+
+创建配置文件以使用兼容的 SDK:
+
+```bash
+cat > src-tauri/.cargo/config.toml << 'EOF'
+[env]
+MACOSX_DEPLOYMENT_TARGET = "15.0"
+SDKROOT = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
+EOF
+```
+
+此文件已在 `.gitignore` 中,不会被提交。
+
+---
+
## 运行时问题
### 应用窗口太小/太大
@@ -379,4 +423,4 @@ Can't detect any appindicator library
sudo dnf install -y libappindicator-devel
```
-为了确保打包环境的完整性,推荐一次性安装所有 Tauri 所需的依赖。请参考本文档中关于 `failed to run linuxdeploy` 问题的解决方案,其中包含了完整的依赖列表。
+为了确保打包环境的完整性,推荐一次性安装所有 Tauri 所需的依赖。请参考本文档中关于 `failed to run linuxdeploy` 问题的解决方案,其中包含了完整的依赖列表。
\ No newline at end of file