File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ USE_ZENITY=1
2222(command -v kdialog > /dev/null || command -v zenity > /dev/null) && [ -n " $DISPLAY " ] && CAN_USE_DIALOGS=1
2323[ $CAN_USE_DIALOGS -eq 1 ] && ! command -v zenity > /dev/null && USE_ZENITY=0
2424
25- # Create cahce directory
25+ # Create cache directory
2626mkdir -p " $CACHE_DIR "
2727
2828# .shellcheck will consume ram trying to parse INNOEXTRACT_BINARY_B64
@@ -700,8 +700,7 @@ umu_launch "$INPUT_INSTALLER" \
700700
701701# Watch the install log
702702_currentfile=0
703- # _filecount=$(("$(get_header_val 'file_count')"+"$(get_header_val 'icon_count')"))
704- _filecount=219
703+ _filecount=$(( $(get_header_val 'file_count')+ $(get_header_val 'icon_count')) )
705704_readlog=1
706705while [ $_readlog -eq 1 ]; do
707706 sleep 0.010
847846 fi
848847done
849848
849+ # Create uninstaller
850+ cat > " $INSTALL_PATH /uninstall.sh" << EOL
851+ #!/bin/sh
852+ printf "You are about to remove %s's data and shortcuts. Are you sure you want to continue? [y/N]\n" "$GAME_NAME_SAFE "
853+ read in
854+ if [ "\$ in" = "y" ] || [ "\$ in" = "yes" ] || [ "\$ in" = "Y" ] || [ "\$ in" = "YES" ]; then
855+ rm -rf "$APPLICATIONS_PATH "
856+ rm -rf "$INSTALL_PATH "
857+ fi
858+ EOL
859+ chmod +x " $INSTALL_PATH /uninstall.sh"
860+
850861# If user chose to create Desktop shortcuts in the installer, symlink to XDG desktop
851862# Shortcut names placed on the Desktop are always the same as what was made in the Start Menu
852863if [ $CREATE_DESKTOP_ENTRIES -eq 1 ]; then
You can’t perform that action at this time.
0 commit comments