Skip to content

Commit c8b566e

Browse files
committed
add(icons): include 64x64 and 256x256 icons in packaging and deployments
1 parent 9d409c9 commit c8b566e

6 files changed

Lines changed: 68 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ jobs:
372372
# Copy desktop file and icons
373373
cp packaging/debian/fluux-messenger.desktop tarball-staging/fluux-messenger/
374374
cp apps/fluux/src-tauri/icons/128x128.png tarball-staging/fluux-messenger/fluux-messenger.png
375-
cp apps/fluux/src-tauri/icons/icon.png tarball-staging/fluux-messenger/fluux-messenger-256.png
375+
cp apps/fluux/src-tauri/icons/256x256.png tarball-staging/fluux-messenger/fluux-messenger-256.png
376376
377377
# Create tarball
378378
mkdir -p dist
@@ -433,7 +433,7 @@ jobs:
433433
cp apps/fluux/src-tauri/target/release/fluux flatpak-build/fluux-messenger
434434
cp packaging/debian/fluux-messenger.desktop flatpak-build/
435435
cp apps/fluux/src-tauri/icons/128x128.png flatpak-build/fluux-messenger.png
436-
cp apps/fluux/src-tauri/icons/icon.png flatpak-build/fluux-messenger-256.png
436+
cp apps/fluux/src-tauri/icons/256x256.png flatpak-build/fluux-messenger-256.png
437437
cp packaging/flatpak/com.processone.fluux.metainfo.xml flatpak-build/
438438
cp packaging/flatpak/com.processone.fluux.yaml flatpak-build/
439439
@@ -563,8 +563,9 @@ jobs:
563563
cp packaging/debian/fluux-messenger.desktop "fluux-messenger-${RPM_VERSION}/"
564564
mkdir -p "fluux-messenger-${RPM_VERSION}/icons"
565565
cp apps/fluux/src-tauri/icons/32x32.png "fluux-messenger-${RPM_VERSION}/icons/"
566+
cp apps/fluux/src-tauri/icons/64x64.png "fluux-messenger-${RPM_VERSION}/icons/"
566567
cp apps/fluux/src-tauri/icons/128x128.png "fluux-messenger-${RPM_VERSION}/icons/"
567-
cp apps/fluux/src-tauri/icons/icon.png "fluux-messenger-${RPM_VERSION}/icons/256x256.png"
568+
cp apps/fluux/src-tauri/icons/256x256.png "fluux-messenger-${RPM_VERSION}/icons/"
568569
569570
tar czvf ~/rpmbuild/SOURCES/fluux-messenger-${RPM_VERSION}.tar.gz "fluux-messenger-${RPM_VERSION}"
570571
9.74 KB
Loading

apps/fluux/src-tauri/tauri.conf.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,13 @@
5353
"icons/32x32.png",
5454
"icons/128x128.png",
5555
"icons/128x128@2x.png",
56+
"icons/256x256.png",
5657
"icons/icon.icns",
5758
"icons/icon.ico"
5859
],
5960
"macOS": {
6061
"minimumSystemVersion": "10.13",
61-
"bundleVersion": "4390076",
62+
"bundleVersion": "9d409c9",
6263
"entitlements": "Entitlements.plist",
6364
"signingIdentity": null
6465
},

docs/LINUX_DEV_ICON.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Linux Dev: Dock Icon Setup
2+
3+
When running `npm run tauri:dev` on Linux (GNOME, KDE, etc.), the app appears in the dock/taskbar without an icon. This is expected — during development there's no installed `.desktop` file, so the desktop environment can't match the window to an icon.
4+
5+
This only affects development. Installed packages (.deb, .rpm, Flatpak, AUR) include a proper `.desktop` file and icons.
6+
7+
## Fix
8+
9+
### 1. Find the WM_CLASS
10+
11+
Start the app with `npm run tauri:dev`, then in another terminal:
12+
13+
```bash
14+
xprop WM_CLASS
15+
```
16+
17+
Click the Fluux window. You'll see something like:
18+
19+
```
20+
WM_CLASS(STRING) = "fluux", "fluux"
21+
```
22+
23+
Note the value (likely `fluux`, the binary name from `Cargo.toml`).
24+
25+
### 2. Create a dev .desktop file
26+
27+
Create `~/.local/share/applications/fluux-messenger-dev.desktop`:
28+
29+
```ini
30+
[Desktop Entry]
31+
Name=Fluux Messenger (Dev)
32+
Exec=/absolute/path/to/fluux-messenger/apps/fluux/src-tauri/target/debug/fluux
33+
Icon=/absolute/path/to/fluux-messenger/apps/fluux/src-tauri/icons/128x128.png
34+
Terminal=false
35+
Type=Application
36+
StartupWMClass=fluux
37+
```
38+
39+
Replace `/absolute/path/to/fluux-messenger` with your actual checkout path, and adjust `StartupWMClass` to match the value from step 1.
40+
41+
### 3. Update the icon cache
42+
43+
```bash
44+
update-desktop-database ~/.local/share/applications/
45+
```
46+
47+
### 4. Verify
48+
49+
Restart `npm run tauri:dev` — the Fluux icon should now appear in the dock.
50+
51+
## Notes
52+
53+
- This file is local to your machine and not tracked in git.
54+
- If you switch between debug and release builds, the `Exec` path doesn't matter for icon matching — only `StartupWMClass` needs to match.
55+
- On Wayland, the app ID may come from the GTK application ID (`com.processone.fluux`) instead of `WM_CLASS`. If the icon still doesn't appear, try setting `StartupWMClass=com.processone.fluux`.

packaging/debian/rules

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,14 @@ override_dh_auto_install:
3535
install -Dm644 debian/fluux-messenger.desktop \
3636
$(CURDIR)/debian/fluux-messenger/usr/share/applications/fluux-messenger.desktop
3737
# Install icons
38-
install -Dm644 apps/fluux/src-tauri/icons/128x128.png \
39-
$(CURDIR)/debian/fluux-messenger/usr/share/icons/hicolor/128x128/apps/fluux-messenger.png
4038
install -Dm644 apps/fluux/src-tauri/icons/32x32.png \
4139
$(CURDIR)/debian/fluux-messenger/usr/share/icons/hicolor/32x32/apps/fluux-messenger.png
40+
install -Dm644 apps/fluux/src-tauri/icons/64x64.png \
41+
$(CURDIR)/debian/fluux-messenger/usr/share/icons/hicolor/64x64/apps/fluux-messenger.png
42+
install -Dm644 apps/fluux/src-tauri/icons/128x128.png \
43+
$(CURDIR)/debian/fluux-messenger/usr/share/icons/hicolor/128x128/apps/fluux-messenger.png
44+
install -Dm644 apps/fluux/src-tauri/icons/256x256.png \
45+
$(CURDIR)/debian/fluux-messenger/usr/share/icons/hicolor/256x256/apps/fluux-messenger.png
4246

4347
override_dh_auto_clean:
4448
cd apps/fluux/src-tauri && cargo clean || true

packaging/rpm/fluux-messenger.spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ install -Dm644 fluux-messenger.desktop %{buildroot}%{_datadir}/applications/fluu
4343

4444
# Install icons
4545
install -Dm644 icons/32x32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/fluux-messenger.png
46+
install -Dm644 icons/64x64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/fluux-messenger.png
4647
install -Dm644 icons/128x128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/fluux-messenger.png
4748
install -Dm644 icons/256x256.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/fluux-messenger.png
4849

0 commit comments

Comments
 (0)