Created
March 20, 2025 08:28
-
-
Save zakhildev/85afd79e67cba62b47610a3de41890a1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
# Designed for MacOS | |
# Not sure whether it works on Linux | |
cd /Users/$USER/Library/"Application Support"/CrossOver/Bottles | |
for folder in $(ls -lA | awk '/^d/ {print $9}'); | |
do | |
echo "Clearing $folder bottle registry..."; | |
cd $folder; | |
rm -rf .version; | |
rm -rf .update-timestamp; | |
sed -i "" '/^\[Software\\\\CodeWeavers\\\\CrossOver\\\\cxoffice\] [0-9]\{1,\}$/,/^"Version"=dword:[0-9a-f]\{8\}$/d' system.reg; | |
cd .. | |
done | |
echo "Clearing preferences..." | |
cd /Users/$USER/Library/Preferences | |
rm -rf com.codeweavers.* | |
echo Done! | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment