feat(desktop): build the app for Linux and Windows under its own name #824
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
Reviewed/Confirmed
Reviewed/Duplicate
Reviewed/Invalid
Reviewed/Won't Fix
Status/Abandoned
Status/Blocked
Status/Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
project-halkyon/halkyon-learn!824
Loading…
Reference in a new issue
No description provided.
Delete branch "refs/pull/824/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The project had only android, ios and web platform folders, so a desktop
build had nothing to brand: the window came up titled after the binary and
wore whatever generic icon the shell falls back to. Scaffold the two desktop
runners with the org that already owns the Android package, which gives both
the application id eu.halkyon.halkyon_learn, and set every surface that
shows a name or a mark.
The GTK runner titles its window "Halkyon Learn" in both the header-bar and
the plain title-bar path, and loads the Halkyon mark from the PNG the Flutter
side already bundles as an asset. That covers X11. Wayland ignores an icon
set on the window: the compositor matches the window's application id to an
installed desktop entry and takes the name and icon from there, so ship that
entry along with an install script that places the bundle, the icon and the
entry under ~/.local, and a README explaining which two names have to stay in
step for the match to happen.
Windows gets the title on the Win32 window and the VERSIONINFO strings
Explorer reads out of the binary. Its icon comes from the same rounded source
as the web one, since it is drawn against window chrome where a square tile
looks unfinished; flutter_launcher_icons writes a lone 256px frame, which
Windows would have to downscale for the 16-48px views it actually uses most,
so the committed .ico carries the full set of frames instead.
Note that just_audio and audio_session have no desktop implementation: audio
playback will not work on either platform until a backend is added for them.
Neither runner has been compiled — this machine has no desktop toolchain.
Signed-off-by: Tizian 「ティツィアーン」 raisondetredev@pm.me