Install desktop file
This commit is contained in:
parent
dfbc7d956a
commit
26c669be26
2 changed files with 16 additions and 0 deletions
5
justfile
5
justfile
|
|
@ -11,6 +11,10 @@ export INSTALL_DIR := base-dir / 'share'
|
||||||
bin-src := 'target' / 'release' / name
|
bin-src := 'target' / 'release' / name
|
||||||
bin-dst := base-dir / 'bin' / 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 recipe which runs `just build-release`
|
||||||
default: build-release
|
default: build-release
|
||||||
|
|
||||||
|
|
@ -46,6 +50,7 @@ run *args:
|
||||||
# Installs files
|
# Installs files
|
||||||
install:
|
install:
|
||||||
install -Dm0755 {{bin-src}} {{bin-dst}}
|
install -Dm0755 {{bin-src}} {{bin-dst}}
|
||||||
|
install -Dm0755 {{desktop-src}} {{desktop-dst}}
|
||||||
|
|
||||||
# Uninstalls installed files
|
# Uninstalls installed files
|
||||||
uninstall:
|
uninstall:
|
||||||
|
|
|
||||||
11
res/com.system76.CosmicEdit.desktop
Normal file
11
res/com.system76.CosmicEdit.desktop
Normal 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;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue