Open Inarizxc opened 1 day ago
Here's my file for creating the derivation:
{appimageTools, fetchurl, ...}:
let
pname = "ModrinthApp";
version = "0.8.9";
src = fetchurl {
url = "https://github.com/DIDIRUS4/AstralRinth/releases/download/ARF-v${version}/AstralRinth.App_${version}_amd64.AppImage";
sha256 = "sha256-HYb3kYfYjRTqHv4zVw5xWXELyVC2ATivf2ebvvKadx8=";
};
appimageContents = appimageTools.extractType2 {
inherit pname version src;
};
in
appimageTools.wrapType2 rec {
inherit pname version src;
extraInstallCommands = ''
mkdir -p $out/share/applications $out/share/pixmaps
# cp ${appimageContents}/AstralRinth\ App.desktop $out/share/applications/
cp ${appimageContents}/AstralRinth\ App.png $out/share/pixmaps/
touch $out/share/applications/AstralRinth\ App.desktop
cat > $out/share/applications/AstralRinth\ App.desktop <<EOF
[Desktop Entry]
Categories=Game;
Exec=nvidia-offload ModrinthApp
Icon=ModrinthApp
Name=AstralRinth App
Terminal=false
Type=Application
MimeType=application/zip+mrpack;x-scheme-handler/modrinth
# for n in {16,32,48,64,128}; do
# size=$n"x"$n
# mkdir -p $out/share/icons/hicolor/$size/apps
# file="default"$n".png"
# cp -r ${appimageContents}/usr/share/* $out/share/
# done
# substituteInPlace $out/share/applications/NeoHtop.desktop \
# --replace-fail "Exec=neohtop %u" "Exec=$out/bin/${pname} %u"
'';
}
The application starts if you delete the app directory
Apparently everything stops working after enabling native decorations, restarting to apply the customization, and another restart
The terminal outputs:
It started the first time and then stopped.