summarylogtreecommitdiffstats
path: root/clonehero.install
diff options
context:
space:
mode:
authorLucas Melo2022-09-18 10:21:43 -0300
committerLucas Melo2022-09-18 10:21:43 -0300
commit7857ba3e1754ad075c3b4fe10b2c05dc94ad110b (patch)
treefe06d87cf60a43899ed479fd2e60027e16f4971e /clonehero.install
parentc7606b1f7b67fb68bed17097b0834fd4d7cb7b4f (diff)
downloadaur-7857ba3e1754ad075c3b4fe10b2c05dc94ad110b.tar.gz
Increase file limit and use CH's new user folder
Diffstat (limited to 'clonehero.install')
-rw-r--r--clonehero.install20
1 files changed, 18 insertions, 2 deletions
diff --git a/clonehero.install b/clonehero.install
index dbfb1754cb69..ce5301777bfe 100644
--- a/clonehero.install
+++ b/clonehero.install
@@ -2,6 +2,22 @@
post_install() {
echo "Use 'clonehero' or the desktop file to run the game and place your" \
-"songs + customs in \$XDG_DATA_HOME/clonehero or ~/.local/share/clonehero" \
-"(the folders will be created upon launching the game for the first time)."
+"songs + customs in '~/Clone Hero/{Songs,Custom}' (the folders will be " \
+"created upon launching the game for the first time)."
+}
+
+post_upgrade() {
+ # Check if the user has upgraded from a version older than v1.0.0.3805, as
+ # that one has changed where CH looks for files (using an user folder
+ # instead of trying to read from the folder with the executable).
+
+ previous=$2
+ older=$(printf "$previous\nv1.0.0.3805" | sort -V | head -n1)
+
+ if [[ "$older" = "$previous" ]]; then
+ echo 'The folder where Clone Hero looks for songs/customs has ' \
+"been changed to '~/Clone Hero/' (previously thie script used " \
+"'<\$XDG_DATA_HOME|~/.local/share>/clonehero') so you will need to move your " \
+'files.'
+ fi
}