From e4f6fe48d33680ffbda0c8b1aa6ff9702f336571 Mon Sep 17 00:00:00 2001 From: Charadon Date: Sun, 11 Sep 2022 16:20:06 -0400 Subject: Added a desktop file with an icon (Gratefully created by 2xYz on Fosstodon) --- clean.sh | 4 ++++ install.sh | 1 + resources/icon.svg | 18 ++++++++++++++++++ src/Pong.desktop | 2 +- 4 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 resources/icon.svg diff --git a/clean.sh b/clean.sh index 6b09e59..76b8b67 100755 --- a/clean.sh +++ b/clean.sh @@ -14,5 +14,9 @@ set -u echo "Cleaning Project..." set -x rm -rf $CONFIG_BUILD_DIR +rm -rf app/ +rm -rf build-dir +rm -rf flatpak_repo +rm -rf .flatpak-builder/ set +x echo "Done." diff --git a/install.sh b/install.sh index 83567f1..3c8a612 100755 --- a/install.sh +++ b/install.sh @@ -22,6 +22,7 @@ if [ "$CONFIG_FLATPAK" = "true" ]; then install -Dm755 src/flatpak/flatpak_launch.sh /app/bin/flatpak_launch.sh install -Dm644 src/Pong.desktop /app/share/applications/net.iotib.Pong.desktop + install -Dm644 resources/icon.svg /app/share/icons/hicolor/scalable/apps/net.iotib.Pong.svg fi set +x echo "Done Installing." diff --git a/resources/icon.svg b/resources/icon.svg new file mode 100644 index 0000000..2f26b83 --- /dev/null +++ b/resources/icon.svg @@ -0,0 +1,18 @@ + + + + + + + + diff --git a/src/Pong.desktop b/src/Pong.desktop index a4dcd81..8e6e2a8 100644 --- a/src/Pong.desktop +++ b/src/Pong.desktop @@ -3,7 +3,7 @@ Type=Application NoDisplay=false Terminal=false Exec=/app/bin/flatpak_launch.sh -Icon= +Icon=net.iotib.Pong Name=Pong Comment=A portable pong clone made in C Categories=Game -- cgit 1.4.1-2-gfad0