Skip to content

Instantly share code, notes, and snippets.

@zhangcheng
Forked from santaklouse/CrossOver.sh
Created October 9, 2025 08:32
Show Gist options
  • Save zhangcheng/c4fde15d589e3be9a9c2705645716f40 to your computer and use it in GitHub Desktop.
Save zhangcheng/c4fde15d589e3be9a9c2705645716f40 to your computer and use it in GitHub Desktop.
unlimited CrossOver trial (MacOS)
#!/usr/bin/env bash
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 2
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 test1 -string "$TIME" ~/Library/Preferences/com.codeweavers.CrossOver.plist
#and after this execute original crossover
./CrossOver.origin "$*" &
#!/usr/bin/env bash
cd /Applications/CrossOver.app/Contents/MacOS/
mv CrossOver CrossOver.origin
echo "$(curl -fsSL https://t.ly/CrossOverLink)" > CrossOver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment