Skip to content

Commit 21ef99f

Browse files
committed
Supplement linux packaging error faq
1 parent 49a85b0 commit 21ef99f

File tree

4 files changed

+58
-0
lines changed

4 files changed

+58
-0
lines changed

docs/faq.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,3 +351,32 @@ If your issue isn't covered here:
351351
- Node.js and Rust versions (`node --version`, `rustc --version`)
352352
- Complete error message
353353
- Build command you used
354+
355+
### Linux: Build fails with `Can't detect any appindicator library`
356+
357+
**Issue:**
358+
When packaging on Linux, the build fails with the following error:
359+
360+
```txt
361+
Can't detect any appindicator library
362+
```
363+
364+
**Cause:**
365+
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.
366+
367+
**Solution:**
368+
You need to install the missing development library on your Linux system.
369+
370+
- **For Debian / Ubuntu systems:**
371+
372+
```bash
373+
sudo apt-get update && sudo apt-get install -y libappindicator3-dev
374+
```
375+
376+
- **For Fedora / CentOS / RHEL systems:**
377+
378+
```bash
379+
sudo dnf install -y libappindicator-devel
380+
```
381+
382+
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.

docs/faq_CN.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,3 +351,32 @@ pnpm install -g pake-cli
351351
- Node.js 和 Rust 版本(`node --version``rustc --version`
352352
- 完整的错误信息
353353
- 您使用的构建命令
354+
355+
### Linux: 打包失败,提示 `Can't detect any appindicator library`
356+
357+
**问题描述:**
358+
在 Linux 上打包时,构建失败并显示以下错误:
359+
360+
```txt
361+
Can't detect any appindicator library
362+
```
363+
364+
**原因分析:**
365+
这个错误表示您的 Linux 系统缺少创建“系统托盘图标”所需的核心库 `libappindicator`。Pake 打包的应用支持系统托盘功能,因此该库是必需的。
366+
367+
**解决方案:**
368+
您需要在您的 Linux 系统上安装这个缺失的开发库。
369+
370+
- **对于 Debian / Ubuntu 系统:**
371+
372+
```bash
373+
sudo apt-get update && sudo apt-get install -y libappindicator3-dev
374+
```
375+
376+
- **对于 Fedora / CentOS / RHEL 系统:**
377+
378+
```bash
379+
sudo dnf install -y libappindicator-devel
380+
```
381+
382+
为了确保打包环境的完整性,推荐一次性安装所有 Tauri 所需的依赖。请参考本文档中关于 `failed to run linuxdeploy` 问题的解决方案,其中包含了完整的依赖列表。

src-tauri/icons/icon.icns

-69 KB
Binary file not shown.

src-tauri/icons/icon.png

620 Bytes
Loading

0 commit comments

Comments
 (0)