From b99584bfaf1eace3238da67ba4689dc17d48474a Mon Sep 17 00:00:00 2001 From: Julian Grinblat Date: Tue, 21 May 2024 19:33:51 +0900 Subject: [PATCH] feat: added desktop file and icon for zwift --- assets/Zwift.desktop | 6 ++++++ .../hicolor/scalable/apps/Zwift Logogram.svg | 18 ++++++++++++++++++ bin/install.sh | 6 ++++++ 3 files changed, 30 insertions(+) create mode 100644 assets/Zwift.desktop create mode 100644 assets/hicolor/scalable/apps/Zwift Logogram.svg diff --git a/assets/Zwift.desktop b/assets/Zwift.desktop new file mode 100644 index 0000000..ab152e5 --- /dev/null +++ b/assets/Zwift.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Zwift +Exec=zwift +Type=Application +StartupNotify=true +Icon=zwift diff --git a/assets/hicolor/scalable/apps/Zwift Logogram.svg b/assets/hicolor/scalable/apps/Zwift Logogram.svg new file mode 100644 index 0000000..d5c13d7 --- /dev/null +++ b/assets/hicolor/scalable/apps/Zwift Logogram.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + diff --git a/bin/install.sh b/bin/install.sh index f1f07bd..e4a07c0 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -11,6 +11,12 @@ mkdir -p /usr/local/bin curl -s -o /usr/local/bin/zwift https://raw.githubusercontent.com/netbrain/zwift/master/zwift.sh chmod +x /usr/local/bin/zwift +mkdir -p /usr/local/share/icons/hicolor/scalable/apps +curl -s -o /usr/local/bin/zwift https://raw.githubusercontent.com/netbrain/zwift/master/assets/hicolor/scalable/apps/Zwift\ Logogram.svg + +mkdir -p /usr/local/share/applications +curl -s -o /usr/local/share/applications/Zwift.desktop https://raw.githubusercontent.com/netbrain/zwift/master/assets/Zwift.desktop + if [ "$(echo $PATH | grep /usr/local/bin)" = "" ]; then echo "WARNING: Could not find /usr/local/bin on the \$PATH, you might need to add it." fi