Add desktop file and icon

This commit is contained in:
Julian Mutter 2024-11-24 21:29:31 +01:00
parent e201539219
commit 9a212a85ea
3 changed files with 22 additions and 1 deletions

View File

@ -86,11 +86,26 @@
# Build the actual crate itself, reusing the dependency
# artifacts from above.
myCrate = craneLib.buildPackage (commonArgs // { inherit cargoArtifacts; });
myCrate = craneLib.buildPackage (
commonArgs
// {
inherit cargoArtifacts;
}
// {
postInstall = ''
mkdir -p $out/share/applications
cp ${./sheet-organizer.desktop} $out/share/applications/sheet-organizer.desktop
mkdir -p $out/share/icons
cp ${./sheet-organizer.png} $out/share/icons/sheet-organizer.png
'';
}
);
# Also run the crate tests under cargo-tarpaulin so that we can keep
# track of code coverage
myCrateCoverage = craneLib.cargoTarpaulin (commonArgs // { inherit cargoArtifacts; });
in
{
packages.default = myCrate;

6
sheet-organizer.desktop Normal file
View File

@ -0,0 +1,6 @@
[Desktop Entry]
Type=Application
Terminal=false
Name=Sheet Organizer
Icon=sheet-organizer
Exec=sheet-organizer

BIN
sheet-organizer.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 KiB