Install desktop file

This commit is contained in:
Jeremy Soller 2023-10-31 10:14:10 -06:00
parent dfbc7d956a
commit 26c669be26
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
2 changed files with 16 additions and 0 deletions

View file

@ -11,6 +11,10 @@ export INSTALL_DIR := base-dir / 'share'
bin-src := 'target' / 'release' / name
bin-dst := base-dir / 'bin' / name
desktop := APPID + '.desktop'
desktop-src := 'res' / desktop
desktop-dst := clean(rootdir / prefix) / 'share' / 'applications' / desktop
# Default recipe which runs `just build-release`
default: build-release
@ -46,6 +50,7 @@ run *args:
# Installs files
install:
install -Dm0755 {{bin-src}} {{bin-dst}}
install -Dm0755 {{desktop-src}} {{desktop-dst}}
# Uninstalls installed files
uninstall:

View file

@ -0,0 +1,11 @@
#TODO: more build-out, desktop actions, translations?
[Desktop Entry]
Name=COSMIC Text Editor
Exec=cosmic-edit %U
Terminal=false
Type=Application
StartupNotify=true
MimeType=text/plain;
Icon=accessories-text-editor
Categories=COSMIC;Utility;TextEditor;
Keywords=Text;Editor;