File tree Expand file tree Collapse file tree
pkgs/by-name/ar/archon-lite Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 url = "https://github.com/RPGLogs/Uploaders-archon-lite/releases/download/v${ version } /archon-lite-v${ version } .AppImage" ;
1212 hash = "sha256-ooNvgbtV6HKgzRLgHZul92NLnEB8oX6fHL6iwfHajVA=" ;
1313 } ;
14+
15+ extracted = appimageTools . extractType2 { inherit pname version src ; } ;
1416in
1517appimageTools . wrapType2 {
1618 inherit pname version src ;
1719
20+ extraInstallCommands = ''
21+ mkdir -p $out/share/applications
22+ mkdir -p $out/share/icons/hicolor/512x512/apps
23+ cp -r ${ extracted } /usr/share/icons/hicolor/512x512/apps/'Archon App Lite.png' $out/share/icons/hicolor/512x512/apps/archon-lite.png
24+ chmod -R +w $out/share/
25+ test ! -e $out/share/icons/hicolor/0x0 # check for regression of https://github.com/electron-userland/electron-builder/issues/5294
26+ cp ${ extracted } /'Archon App Lite.desktop' $out/share/applications/archon-lite.desktop
27+ substituteInPlace $out/share/applications/archon-lite.desktop \
28+ --replace-fail "Exec=AppRun --no-sandbox" "Exec=archon-lite" \
29+ --replace-fail "Icon=Archon App Lite" "Icon=archon-lite"
30+ '' ;
31+
1832 passthru . updateScript = nix-update-script { } ;
1933
2034 meta = {
You can’t perform that action at this time.
0 commit comments