[bug] App icon is not used in .deb build
Open
Nobody has claimed this yet.
platform: Linux
status: needs triage
type: bug
- Dominant language
- Rust
- Stars
- 111k
- Forks
- 4k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 45
Description
Describe the bug
After generating icon files using the tauri icon from a provided PNG and running tauri build, the .deb build does not have any icon at all (.AppImage is fine!)
Reproduction
https://github.com/moritree/tauri-linux-icon-mre
Steps taken:
- Create fresh project with
yarn create tauri-app. Basic settings: TypeScript, yarn, vanilla UI. - Add icon to root folder at
app-icon.png - Run
yarn tauri icon app-icon.png yarn tauri build; install.debpackage
Expected behavior
No response
Full tauri info output
[✔] Environment
- OS: Ubuntu 24.10.0 x86_64 (X64) (KDE on wayland)
✔ webkit2gtk-4.1: 2.48.1
✔ rsvg2: 2.59.1
✔ rustc: 1.86.0 (05f9846f8 2025-03-31)
✔ cargo: 1.86.0 (adf9b6ad1 2025-02-28)
✔ rustup: 1.28.2 (e4f3ad6f8 2025-04-28)
✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
- node: 20.16.0
- yarn: 1.22.22
- npm: 9.2.0
[-] Packages
- tauri 🦀: 2.5.1
- tauri-build 🦀: 2.2.0
- wry 🦀: 0.51.2
- tao 🦀: 0.33.0
- tauri-cli 🦀: 2.5.0
- @tauri-apps/api : 2.5.0
- @tauri-apps/cli : 2.5.0
[-] Plugins
- tauri-plugin-opener 🦀: 2.2.6
- @tauri-apps/plugin-opener : 2.2.6
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- bundler: Vite
Stack trace
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the minimal reproduction at https://github.com/moritree/tauri-linux-icon-mre and repeat yarn tauri icon app-icon.png followed by yarn tauri build. Compare the generated .deb with the working .AppImage; done means the installed Debian package uses the generated application icon.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, rust
- Domain
- build-system, desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100