Skip to content

Commit

Permalink
Wine (x86): only uninstall specific pi-apps version
Browse files Browse the repository at this point in the history
if user has manually installed some other wine versions using the `wine-` name previously the uninstall script would remove them on uninstall. this is undesirable if a user wants to have multiple wine versions or types installed at once.
  • Loading branch information
theofficialgman committed Jun 18, 2023
1 parent caa99e1 commit 9f5d1d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/Wine (x86)/install-32
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ else
fi
#Past this point, the pi is running a Wine-compatible kernel.

#note to maintainer, if you change the below version make sure to update it in the uninstall script as well
version=8.10

#install box86
Expand Down
4 changes: 3 additions & 1 deletion apps/Wine (x86)/uninstall
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

version=8.10

pkill -9 wine
command -v wineserver >/dev/null && wineserver -k

Expand All @@ -8,7 +10,7 @@ sudo rm -rf /usr/local/bin/wine /usr/local/bin/winecfg /usr/local/bin/wineserver
status_green "Done"

status -n "Removing Wine folders... "
sudo rm -rf /opt/wine-*
sudo rm -rf /opt/wine-${version}
rm -rf ~/.cache/winetricks ~/.cache/wine
status_green "Done"

Expand Down

0 comments on commit 9f5d1d7

Please sign in to comment.