From 0ebaffa6f174e79039267cbd600eb78f93222cdc Mon Sep 17 00:00:00 2001 From: teejusb <5017202+teejusb@users.noreply.github.com> Date: Thu, 25 Apr 2024 13:00:05 -0700 Subject: [PATCH] Use the svg for the icon on linux + copy SL Modules as part of the setup script --- Data/logo.svg | 174 +++++++++++++++++++++++++++++++++++++++++++++ Installer/setup.sh | 8 ++- itgmania.desktop | 2 +- 3 files changed, 182 insertions(+), 2 deletions(-) create mode 100644 Data/logo.svg diff --git a/Data/logo.svg b/Data/logo.svg new file mode 100644 index 0000000000..75bbfefcd1 --- /dev/null +++ b/Data/logo.svg @@ -0,0 +1,174 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Installer/setup.sh b/Installer/setup.sh index 2fada817ce..8718addda8 100755 --- a/Installer/setup.sh +++ b/Installer/setup.sh @@ -7,7 +7,12 @@ if [ "$(id -u)" -ne 0 ]; then fi copy_sl_config() { - if [ -e "/opt/itgmania/Themes/Simply Love.old/$1" ]; then + if [ -d "/opt/itgmania/Themes/Simply Love.old/$1" ]; then + # Don't overwrite any existing files. + # This lets us retain the updated readmes and other files that come with the new release. + cp -r -n "/opt/itgmania/Themes/Simply Love.old/$1" "/opt/itgmania/Themes/Simply Love/$1" + return + elif [ -f "/opt/itgmania/Themes/Simply Love.old/$1" ]; then cp "/opt/itgmania/Themes/Simply Love.old/$1" "/opt/itgmania/Themes/Simply Love/$1" fi } @@ -26,6 +31,7 @@ ln -sf /opt/itgmania/itgmania.desktop /usr/share/applications if [ -d /opt/itgmania/Themes/Simply\ Love.old ]; then copy_sl_config Other/SongManager\ PreferredCourses.txt copy_sl_config Other/SongManager\ PreferredSongs.txt + copy_sl_config Modules rm -rf /opt/itgmania/Themes/Simply\ Love.old fi diff --git a/itgmania.desktop b/itgmania.desktop index f95669f220..3ae0608d40 100644 --- a/itgmania.desktop +++ b/itgmania.desktop @@ -4,7 +4,7 @@ GenericName=Rhythm and dance game TryExec=/opt/itgmania/itgmania Exec=/opt/itgmania/itgmania Terminal=false -Icon=/opt/itgmania/Data/icon.png +Icon=/opt/itgmania/Data/logo.svg Type=Application Categories=Game;ArcadeGame Comment=A cross-platform rhythm video game.