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
22
22
(command -v kdialog > /dev/null || command -v zenity > /dev/null) && [ -n " $DISPLAY " ] && CAN_USE_DIALOGS=1
23
23
[ $CAN_USE_DIALOGS -eq 1 ] && ! command -v zenity > /dev/null && USE_ZENITY=0
24
24
25
- # Create cahce directory
25
+ # Create cache directory
26
26
mkdir -p " $CACHE_DIR "
27
27
28
28
# .shellcheck will consume ram trying to parse INNOEXTRACT_BINARY_B64
@@ -700,8 +700,7 @@ umu_launch "$INPUT_INSTALLER" \
700
700
701
701
# Watch the install log
702
702
_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')) )
705
704
_readlog=1
706
705
while [ $_readlog -eq 1 ]; do
707
706
sleep 0.010
847
846
fi
848
847
done
849
848
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
+
850
861
# If user chose to create Desktop shortcuts in the installer, symlink to XDG desktop
851
862
# Shortcut names placed on the Desktop are always the same as what was made in the Start Menu
852
863
if [ $CREATE_DESKTOP_ENTRIES -eq 1 ]; then
You can’t perform that action at this time.
0 commit comments