-
-
Save ottodevs/42246ada24f67ceed852f1b35a443f22 to your computer and use it in GitHub Desktop.
unlimited CrossOver trial (MacOS)
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
| #!/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 test1 -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 |
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
| #!/usr/bin/env bash | |
| cd /Applications/CrossOver.app/Contents/MacOS/ | |
| test -f CrossOver.origin && echo 'already installed. exiting...' && exit | |
| mv CrossOver CrossOver.origin | |
| echo "$(curl -fsSL https://t.ly/CrossOverLink)" > 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