diff options
author | Lucas Melo | 2022-09-18 10:21:43 -0300 |
---|---|---|
committer | Lucas Melo | 2022-09-18 10:21:43 -0300 |
commit | 7857ba3e1754ad075c3b4fe10b2c05dc94ad110b (patch) | |
tree | fe06d87cf60a43899ed479fd2e60027e16f4971e /clonehero.install | |
parent | c7606b1f7b67fb68bed17097b0834fd4d7cb7b4f (diff) | |
download | aur-7857ba3e1754ad075c3b4fe10b2c05dc94ad110b.tar.gz |
Increase file limit and use CH's new user folder
Diffstat (limited to 'clonehero.install')
-rw-r--r-- | clonehero.install | 20 |
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 } |