emudeck: fixup install scripts

This commit is contained in:
Aly Raffauf 2024-11-29 21:55:40 -05:00
parent b93f0222d4
commit 7dbd19707e

View file

@ -1,3 +1,4 @@
# This is extremely limited and largely proof-of-concept. Many things will simply not work, including Steam ROM Manager. Expect issues.
{ {
appimageTools, appimageTools,
fetchurl, fetchurl,
@ -25,6 +26,18 @@ appimageTools.wrapType2 rec {
zenity zenity
]; ];
extraInstallCommands = let
appimageContents = appimageTools.extractType2 {
inherit pname version src;
};
in ''
install -m 444 -D ${appimageContents}/emudeck.desktop $out/share/applications/emudeck.desktop
install -m 444 -D ${appimageContents}/emudeck.png \
$out/share/icons/hicolor/scalable/apps/emudeck.png
substituteInPlace $out/share/applications/${pname}.desktop \
--replace 'Exec=AppRun' 'Exec=${pname}'
'';
meta = with lib; { meta = with lib; {
description = "EmuDeck utility to manage ROMs on handheld PCs"; description = "EmuDeck utility to manage ROMs on handheld PCs";
homepage = "https://github.com/EmuDeck/emudeck-electron"; homepage = "https://github.com/EmuDeck/emudeck-electron";