bash -c "$(curl -fsSL https://gist.github.com/santaklouse/a137ee51692b74d4cf2cc1bb68ed64ef/raw/a9cfd03a04e8afc7e907e38c0fb02042e0ab143e/install.sh)"
After install script will fix crossover as well as expired bottles (Thanks to @djsmax).
#!/usr/bin/env bash | |
PWD=/Applications/CrossOver.app/Contents/MacOS | |
PROC_NAME=CrossOver | |
pids=(`pgrep "$PROC_NAME"`, `pidof "$PROC_NAME"`, `ps -Ac | grep -m1 '"$PROC_NAME"\$' | awk '{print \$1}'`) | |
pids=`echo $pids|tr ',' ' '` | |
# kill instance if it running | |
[ "$pids" ] && kill -9 `echo $pids` >/dev/null 2>&1 | |
sleep 3 | |
TIME=`date -v -1H '+%b %d, %Y, %H:%M:%S %p'` | |
/usr/bin/osascript -e "display notification \"trial fixed: date changed to $TIME\"" | |
# modify time in order to reset trial | |
plutil -replace FirstRunDate -string "$TIME" ~/Library/Preferences/com.codeweavers.CrossOver.plist | |
for file in ~/Library/Application\ Support/CrossOver/Bottles/*/.{eval,update-timestamp}; do rm "$file";done | |
#and after this execute original crossover | |
echo $PWD > /tmp/co_log.log | |
"$($PWD/CrossOver.origin)" >> /tmp/co_log.log |
#!/usr/bin/env bash | |
cd /Applications/CrossOver.app/Contents/MacOS/ | |
FIX_FILE_LINK='https://gist.github.com/santaklouse/a137ee51692b74d4cf2cc1bb68ed64ef/raw/a9cfd03a04e8afc7e907e38c0fb02042e0ab143e/CrossOver.sh' | |
test -f CrossOver.origin && echo 'already installed. exiting...' && exit | |
test -f CrossOver.origin || mv CrossOver CrossOver.origin | |
echo "$(curl -fsSL $FIX_FILE_LINK)" > CrossOver | |
chmod +x CrossOver | |
echo 'Done. Please open CrossOver ' |