expidus.file-manager: use $pname for app dir

This commit is contained in:
Tristan Ross 2024-09-29 19:39:40 -07:00
parent 8b71097c32
commit c53017ddcb
No known key found for this signature in database
GPG Key ID: B09C422035669AF8

View File

@ -23,16 +23,16 @@ flutter.buildFlutterApplication rec {
postInstall = '' postInstall = ''
rm $out/bin/file_manager rm $out/bin/file_manager
ln -s $out/app/file_manager $out/bin/expidus-file-manager ln -s $out/app/$pname/file_manager $out/bin/expidus-file-manager
mkdir -p $out/share/applications mkdir -p $out/share/applications
mv $out/app/data/com.expidusos.file_manager.desktop $out/share/applications mv $out/app/$pname/data/com.expidusos.file_manager.desktop $out/share/applications
mkdir -p $out/share/icons mkdir -p $out/share/icons
mv $out/app/data/com.expidusos.file_manager.png $out/share/icons mv $out/app/$pname/data/com.expidusos.file_manager.png $out/share/icons
mkdir -p $out/share/metainfo mkdir -p $out/share/metainfo
mv $out/app/data/com.expidusos.file_manager.metainfo.xml $out/share/metainfo mv $out/app/$pname/data/com.expidusos.file_manager.metainfo.xml $out/share/metainfo
substituteInPlace "$out/share/applications/com.expidusos.file_manager.desktop" \ substituteInPlace "$out/share/applications/com.expidusos.file_manager.desktop" \
--replace "Exec=file_manager" "Exec=$out/bin/expidus-file-manager" \ --replace "Exec=file_manager" "Exec=$out/bin/expidus-file-manager" \