Instantly share code, notes, and snippets.
Save ellsies/e9383c75fd8cd8d5781dac91d7e2360d to your computer and use it in GitHub Desktop.
| #!/usr/bin/env bash | |
| # checck if pidof exists | |
| PIDOF="$(which pidof)" | |
| # and if not - install it | |
| (test"${PIDOF}"&&test -f"${PIDOF}")|| brew install pidof | |
| # find app in default paths | |
| CO_PWD=~/Applications/CrossOver.app/Contents/MacOS | |
| test -d"${CO_PWD}"|| CO_PWD=/Applications/CrossOver.app/Contents/MacOS | |
| test -d"${CO_PWD}"|| (echo'unable to detect app path. exiting...'&& exit) | |
| PWD="${CO_PWD}" | |
| cd"${PWD}" | |
| PROC_NAME='CrossOver' | |
| # get all pids of CrossOver | |
| pids=(`pgrep"${PROC_NAME}"`,`pidof"${PROC_NAME}"`,`ps -Ac| grep -m1"${PROC_NAME}"| awk'{print $1}'`) | |
| pids=`echo${pids[*]}|tr','''` | |
| # kills CrossOver process if it is running | |
| ["${pids}" ]&&kill -9`echo"${pids}"`> /dev/null2>&1 | |
| # wait until app finish | |
| sleep 3 | |
| # make the current date RFC3339-encoded string representation in UTC time zone | |
| DATETIME=`date -u -v -3H'+%Y-%m-%dT%TZ'` | |
| # modify time in order to reset trial | |
| plutil -replace FirstRunDate -date"${DATETIME}"~/Library/Preferences/com.codeweavers.CrossOver.plist | |
| plutil -replace SULastCheckTime -date"${DATETIME}"~/Library/Preferences/com.codeweavers.CrossOver.plist | |
| # show tooltip notification | |
| /usr/bin/osascript -e"display notification\"trial fixed: date changed to${DATETIME}\"" | |
| forfilein~/Library/Application\Support/CrossOver/Bottles/*/system.reg;do | |
| sed -i -e"/^\\[Software\\\\\\\\CodeWeavers\\\\\\\\CrossOver\\\\\\\\cxoffice\\]/,+6d""${file}"; | |
| done | |
| # This loop finds and deletes .update-timestamp files in each bottle | |
| forupdate_filein~/Library/Application\Support/CrossOver/Bottles/*/.update-timestamp;do | |
| rm -f"${update_file}" | |
| done | |
| /usr/bin/osascript -e"display notification\"bottles fixed: all timestamps removed\"" | |
| # and after this execute original crossover | |
| echo"${PWD}"> /tmp/co_log.log | |
| "$($PWD/CrossOver.origin)">> /tmp/co_log.log |
| #!/usr/bin/env bash | |
| CO_PWD=~/Applications/CrossOver.app/Contents/MacOS | |
| test -d"${CO_PWD}"|| CO_PWD=/Applications/CrossOver.app/Contents/MacOS | |
| test -d"${CO_PWD}"|| (echo'unable to detect app path. exiting...'&& exit) | |
| PWD="${CO_PWD}" | |
| cd"${PWD}" | |
| PROC_NAME='CrossOver' | |
| pids=(`pgrep"${PROC_NAME}"`,`pidof"${PROC_NAME}"`,`ps -Ac| grep -m1"${PROC_NAME}"| awk'{print $1}'`) | |
| pids=`echo${pids[*]}|tr','''` | |
| ["${pids}" ]&&kill -9`echo"${pids}"`> /dev/null2>&1 | |
| FIX_FILE_LINK="https://gist.githubusercontent.com/ellsies/e9383c75fd8cd8d5781dac91d7e2360d/raw/d4431abd07cdcd83853567b646d0b68bf66c7e6c/Crossover.sh" | |
| if [-f CrossOver.origin ];then | |
| echo'already installed. update and exit.' | |
| echo"$(curl -fsSL${FIX_FILE_LINK})"> CrossOver | |
| exit | |
| fi; | |
| test -f CrossOver.origin|| mv CrossOver CrossOver.origin | |
| echo"$(curl -fsSL${FIX_FILE_LINK})"> CrossOver | |
| chmod +x CrossOver | |
| echo'Done. Please open CrossOver' |
| #!/usr/bin/env bash | |
| CO_PWD=~/Applications/CrossOver.app/Contents/MacOS | |
| test -d"${CO_PWD}"|| CO_PWD=/Applications/CrossOver.app/Contents/MacOS | |
| test -d"${CO_PWD}"|| (echo'unable to detect app path. exiting...'&& exit) | |
| PWD="${CO_PWD}" | |
| cd"${PWD}" | |
| PROC_NAME='CrossOver' | |
| pids=(`pgrep"${PROC_NAME}"`,`pidof"${PROC_NAME}"`,`ps -Ac| grep -m1"${PROC_NAME}"| awk'{print $1}'`) | |
| pids=`echo${pids[*]}|tr','''` | |
| ["${pids}" ]&&kill -9`echo"${pids}"`> /dev/null2>&1 | |
| if [-f CrossOver.origin ];then | |
| echo'uninstalling...' | |
| rm CrossOver | |
| mv CrossOver.origin CrossOver | |
| echo'Done. Please open CrossOver' | |
| osascript -e'display notification "CrossOver has been uninstalled."' | |
| exit | |
| fi; | |
| echo'already uninstalled/original file not found. exit.' | |
| exit |
adhamhaithameid commentedMar 13, 2025
when i execute this command: "bash -c "$(curl -fsSLhttps://gist.github.com/ellsies/e9383c75fd8cd8d5781dac91d7e2360d/raw/install.sh)"" the crossover app doesn't open at all. i am using mackbook air with m1 chip
Lemme guess, it tries to open and then closes?
yes
Uninstall and then reinstall, that is what I had to do
the app doesn't show up in the Applications folder, how do i uninstall it?
Entersjkhdfkjdhfksjf commentedMar 13, 2025
when i execute this command: "bash -c "$(curl -fsSLhttps://gist.github.com/ellsies/e9383c75fd8cd8d5781dac91d7e2360d/raw/install.sh)"" the crossover app doesn't open at all. i am using mackbook air with m1 chip
Lemme guess, it tries to open and then closes?
yes
Uninstall and then reinstall, that is what I had to do
the app doesn't show up in the Applications folder, how do i uninstall it?
There is a uninstall script above. If it still does not work, renew it then uninstall and reinstall a few days before it expires.
moacdev commentedMar 28, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Thank you a lot !
Just close CrossOver if open, then open terminal and paste-enter:
DATETIME=`date -u -v -3H '+%Y-%m-%dT%TZ'`# modify time in order to reset trialplutil -replace FirstRunDate -date "${DATETIME}" ~/Library/Preferences/com.codeweavers.CrossOver.plistplutil -replace SULastCheckTime -date "${DATETIME}" ~/Library/Preferences/com.codeweavers.CrossOver.plistmaeceloacm1998 commentedApr 4, 2025
@moacdev
Up!
This command resolve the problem.
xd0r14n commentedApr 12, 2025
Entersjkhdfkjdhfksjf commentedApr 12, 2025
cdoglogan commentedApr 14, 2025
Can someone answer yes or no,is this safe? And is this as simple as pasting "bash -c "$(curl -fsSLhttps://gist.github.com/ellsies/e9383c75fd8cd8d5781dac91d7e2360d/raw/install.sh)" into the Terminal?
Entersjkhdfkjdhfksjf commentedApr 14, 2025
Can someone answer yes or no,is this safe? And is this as simple as pasting "bash -c "$(curl -fsSLhttps://gist.github.com/ellsies/e9383c75fd8cd8d5781dac91d7e2360d/raw/install.sh)" into the Terminal?
Yes
Kossybml commentedApr 14, 2025
How do I get started on my m1 Mac air, I just downloaded CO. This is day one.
NishanRupesh commentedApr 27, 2025
This is super useful, is there anything similar for Parallels as well?
neuro-stitch commentedApr 30, 2025
Hello, is there a variant available for Linux or a way to get this on Linux?
Simthem commentedMay 1, 2025
I will try to do it in disassembly for us
SebaKow commentedMay 3, 2025
This is not working for me on macbook M3, could anybody help me please?
Moreforyaz commentedJun 21, 2025
says zsh: event not found
running sequoia on m4@ellsies
Lvalon commentedSep 13, 2025
AdvitKaushik commentedSep 17, 2025
insanerest commentedOct 3, 2025
https://gist.github.com/santaklouse/a137ee51692b74d4cf2cc1bb68ed64ef
This is an alternative to the script above. I tested it and it works. The application opens and bottles are reset
adilutp commentedNov 19, 2025
https://gist.github.com/santaklouse/a137ee51692b74d4cf2cc1bb68ed64ef
This is an alternative to the script above. I tested it and it works. The application opens and bottles are reset
do you have the code? it was taken down
insanerest commentedNov 19, 2025
https://gist.github.com/santaklouse/a137ee51692b74d4cf2cc1bb68ed64ef
This is an alternative to the script above. I tested it and it works. The application opens and bottles are resetdo you have the code? it was taken down
Yes, dm on Discord:insanerst
Sagar264offici commentedNov 22, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Better to install prefs editor and cahnge date of crossover i patched my crossover so i can run AAA games like god of war
but the issue is when i install any game of rockstar so i am not able to open rockstar launcher
it keeps showing that network is not connected
i tried changing DNS, Rockstar launcher reinstall, game reinstall still gives error.
looks like it ain't gonna run
@insanerest@Foxonn
CladStriffe commentedNov 22, 2025
https://gist.github.com/santaklouse/a137ee51692b74d4cf2cc1bb68ed64ef
This is an alternative to the script above. I tested it and it works. The application opens and bottles are resetdo you have the code? it was taken down
I am also interested
insanerest commentedNov 23, 2025
Better to install prefs editor and cahnge date of crossover i patched my crossover so i can run AAA games like god of war but the issue is when i install any game of rockstar so i am not able to open rockstar launcher
it keeps showing that network is not connected i tried changing DNS, Rockstar launcher reinstall, game reinstall still gives error.
looks like it ain't gonna run@insanerest@Foxonn
It probably relies on something that is tied to Windows hardware. Crossover only recreates the software
It might also be a problem with the game itself. Check if anyone used it on Windows and it gave them the same error.
Prexry commentedNov 27, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@CladStriffe@adilutp
Hello, I have updated this script to work once more!
I've also included a bit to refresh your bottles for you! Hip hip hooray!
curl:bash <(curl -s https://raw.githubusercontent.com/Prexry/evil-crossover/refs/heads/main/refresh.sh)
1MacUser commentedNov 30, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Hey mate, I tried your code and ran it in the terminal:
bash -c "$(curl -fsSLhttps://gist.github.com/ellsies/e9383c75fd8cd8d5781dac91d7e2360d/raw/install.sh)"
After that, I can’t open the Crossover app anymore, and I’m getting the issue shown in the screenshot.

I also tried installing the new version from@Prexry, but unfortunately it still doesn’t work.
How can I fix this?
Prexry commentedNov 30, 2025
Hey@1MacUser
I saw this happen and removing the CrossOver app and simply reinstalling it fixed it (no data lost, just the .app replaced)
I'm also not sure if there's any discrepancies with macOS Tahoe as I'm testing this on macOS Sequoia
As for ellsies, I couldn't get it to work and my script aims to fix that
Please try reinstalling CrossOver, opening it, then running the script.
1MacUser commentedDec 1, 2025
@Prexry It worked :) Thank you mate. I just reinstalled the Crossover app, and all my settings and bottles are fine.
c4vi4z commentedDec 4, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@Prexry hey!! replaced the .app after running your script, nothing. also tried running your script again but it unfortunately didn't work. any tips? *tahoe, intel mac.
Prexry commentedDec 6, 2025
@c4vi4z@kaibuchan Itcould be an issue with Tahoe but I have no way of testing that as I use a borrowed mac mini with macOS Sequoia
I may have more to add later but there's nothing I can really do to extensively test it at the moment
1MacUser commentedDec 9, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@ellsies thank you again! I just checked out again your script and it worked :)
Morzh7771 commentedDec 10, 2025
Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)!
To rerun under ARM use:
arch -arm64 brew install ...
To install under x86_64, install Homebrew into /usr/local.
/Users/morzh/Desktop/CrossOver: line 20: pidof: command not found
/Users/morzh/Desktop/CrossOver: line 52: /Applications/CrossOver.app/Contents/MacOS/CrossOver.origin: No such file or directory
/Users/morzh/Desktop/CrossOver: line 52: : command not found
Saving session...completed.
can you help me?




