Add .desktop, icon and AppImage support

This commit is contained in:
Alexis Sellier 2019-09-28 23:11:26 +02:00
parent 9290e69765
commit caa5539ced
No known key found for this signature in database
GPG Key ID: 3E3C1B6185AC4475
4 changed files with 18 additions and 0 deletions

2
.gitignore vendored
View File

@ -4,3 +4,5 @@ flamegraph.svg
/target
/images
**/*.rs.bk
*.AppImage
AppDir

7
rx.desktop Normal file
View File

@ -0,0 +1,7 @@
[Desktop Entry]
Name=rx
Exec=rx
Icon=rx
Comment=A modern & extensible pixel editor
Type=Application
Categories=Utility;

BIN
rx.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

9
scripts/create-appimage Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
set -e
linuxdeploy \
--executable=target/release/rx \
--desktop-file=rx.desktop \
--icon-file=rx.png \
--appdir=AppDir
appimagetool --no-appstream --sign AppDir