diff options
author | Charadon <dev@iotib.net> | 2022-09-11 16:20:06 -0400 |
---|---|---|
committer | Charadon <dev@iotib.net> | 2022-09-11 16:20:06 -0400 |
commit | e4f6fe48d33680ffbda0c8b1aa6ff9702f336571 (patch) | |
tree | d066dc333e66ca591ec83be0af945f86c6cd5b52 | |
parent | 488823e80dfbacb253842690d78b666f0bc0454d (diff) | |
download | Pong-C-e4f6fe48d33680ffbda0c8b1aa6ff9702f336571.tar.gz |
Added a desktop file with an icon (Gratefully created by 2xYz on Fosstodon)
-rwxr-xr-x | clean.sh | 4 | ||||
-rwxr-xr-x | install.sh | 1 | ||||
-rw-r--r-- | resources/icon.svg | 18 | ||||
-rw-r--r-- | src/Pong.desktop | 2 |
4 files changed, 24 insertions, 1 deletions
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 @@ +<?xml version="1.0" standalone="no"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" + "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> +<svg version="1.0" xmlns="http://www.w3.org/2000/svg" + width="386.000000pt" height="386.000000pt" viewBox="0 0 386.000000 386.000000" + preserveAspectRatio="xMidYMid meet"> + +<g transform="translate(0.000000,386.000000) scale(0.100000,-0.100000)" +fill="#000000" stroke="none"> +<path d="M0 1930 l0 -1930 1930 0 1930 0 0 1930 0 1930 -1930 0 -1930 0 0 +-1930z m554 1228 c14 -20 16 -92 16 -585 0 -550 0 -563 -20 -583 -25 -25 -71 +-26 -101 -1 l-24 19 0 565 c0 541 1 566 19 586 27 30 89 29 110 -1z m1053 +-1133 c33 -33 35 -39 30 -82 -11 -100 -114 -138 -183 -69 -28 28 -34 42 -34 +76 0 34 6 48 34 76 28 28 42 34 76 34 35 0 48 -6 77 -35z m1708 -230 l25 -24 +0 -589 c0 -578 0 -589 -20 -610 -28 -30 -82 -30 -110 0 -20 21 -20 32 -20 610 +l0 589 25 24 c13 14 36 25 50 25 14 0 37 -11 50 -25z"/> +</g> +</svg> 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 |