Enhance desktop shortcut
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
, runCommand
|
||||
, writeShellScriptBin
|
||||
, makeDesktopItem
|
||||
, imagemagick
|
||||
, p7zip
|
||||
, wineWow64Packages
|
||||
, dxvk
|
||||
, symlinkJoin
|
||||
@@ -22,6 +24,14 @@ let
|
||||
hash = "sha256-MFuIuPt/MlVzlCwiIGjjKkYT0Sm7ov5wm5Mrd1zfzx4=";
|
||||
};
|
||||
|
||||
iconFiles = runCommand "eqlegends-icon" { nativeBuildInputs = [ imagemagick p7zip ]; } ''
|
||||
mkdir -p $out/share/icons/hicolor/256x256/apps
|
||||
|
||||
tmpdir="$(mktemp -d)"
|
||||
7z e -y -o"$tmpdir" ${installer} LaunchPad.ico >/dev/null
|
||||
magick "$tmpdir/LaunchPad.ico[0]" "$out/share/icons/hicolor/256x256/apps/eqlegends.png"
|
||||
'';
|
||||
|
||||
setupDxvk = writeShellScriptBin "eqlegends-setup-dxvk" ''
|
||||
set -euo pipefail
|
||||
|
||||
@@ -143,8 +153,12 @@ EOF
|
||||
name = "eqlegends";
|
||||
desktopName = "EverQuest Legends";
|
||||
comment = "EverQuest Legends LaunchPad (Wine)";
|
||||
icon = "eqlegends";
|
||||
exec = "eqlegends";
|
||||
categories = [ "Game" ];
|
||||
terminal = false;
|
||||
categories = [ "Game" "RolePlaying" ];
|
||||
keywords = [ "EverQuest" "EverQuest Legends" "Daybreak" "Game" ];
|
||||
startupNotify = true;
|
||||
};
|
||||
|
||||
desktopFiles = runCommand "eqlegends-desktop" { } ''
|
||||
@@ -158,6 +172,7 @@ symlinkJoin {
|
||||
paths = [
|
||||
launcher
|
||||
reset
|
||||
iconFiles
|
||||
desktopFiles
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user