Skip to content

Instantly share code, notes, and snippets.

@cupools
Forked from santaklouse/CrossOver.sh
Created March 19, 2024 14:20
Show Gist options
  • Save cupools/20b0988b996c29b13a13a9c83654aead to your computer and use it in GitHub Desktop.
Save cupools/20b0988b996c29b13a13a9c83654aead to your computer and use it in GitHub Desktop.
unlimited CrossOver trial (MacOS)

Run it in console for permanent install :

bash -c "$(curl -fsSL https://gist.github.com/santaklouse/a137ee51692b74d4cf2cc1bb68ed64ef/raw/75ddf7154124115967c8f76bef00d23e1448a3fb/install.sh)"

for fix expired bottles:

(Thanks to @github/djsmax)

for file in ~/Library/Application\ Support/CrossOver/Bottles/*/.{eval,update-timestamp}; do rm "$file";done
#!/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
#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/75ddf7154124115967c8f76bef00d23e1448a3fb/CrossOver.sh'
test -f CrossOver.origin && echo 'already installed. exiting...' && exit
mv CrossOver CrossOver.origin
echo "$(curl -fsSL $FIX_FILE_LINK)" > CrossOver
chmod +x CrossOver
echo 'Done. Please open CrossOver '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment