Stabilize launcher name for flow-browser-bin by creating a symlink to the versioned binary, ensuring consistent naming in menus.
Build and populate cache / tests (chiasson, nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-25.05.tar.gz, chiasson) (push) Successful in 1m55s
Build and populate cache / tests (chiasson, nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-unstable.tar.gz, chiasson) (push) Successful in 1m48s
Build and populate cache / tests (chiasson, nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixpkgs-unstable.tar.gz, chiasson) (push) Successful in 1m45s

This commit is contained in:
2026-01-12 19:42:44 -04:00
parent ac3834846f
commit 104d0afbd2
+6
View File
@@ -83,6 +83,12 @@ appimageTools.wrapType2 {
echo "TryExec=$out/bin/${pname}" >> $out/share/applications/flow-browser.desktop echo "TryExec=$out/bin/${pname}" >> $out/share/applications/flow-browser.desktop
fi fi
# appimageTools.wrapType2 tends to name the wrapper with the version suffix
# (e.g. flow-browser-bin-0.8.6). Provide a stable name for launchers/scripts.
if [ -e "$out/bin/${pname}-${version}" ] && [ ! -e "$out/bin/${pname}" ]; then
ln -s "$out/bin/${pname}-${version}" "$out/bin/${pname}"
fi
# Keep the launcher name stable (avoid showing version suffixes in menus). # Keep the launcher name stable (avoid showing version suffixes in menus).
if grep -q '^Name=' $out/share/applications/flow-browser.desktop; then if grep -q '^Name=' $out/share/applications/flow-browser.desktop; then
sed -i 's/^Name=.*/Name=Flow/' $out/share/applications/flow-browser.desktop sed -i 's/^Name=.*/Name=Flow/' $out/share/applications/flow-browser.desktop