bash -c "$(curl -fsSL https://gist.github.com/santaklouse/a137ee51692b74d4cf2cc1bb68ed64ef/raw/install.sh?token=$(date +%s))"
After install script will fix crossover as well as expired bottles (Thanks to @djsmax).
#!/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/null 2>&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}\"" | |
# reset all bottles | |
for file in ~/Library/Application\ Support/CrossOver/Bottles/*/.{eval,update-timestamp}; do rm -rf "${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 | |
# 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/null 2>&1 | |
TIMESTAMP=$(date +%s) | |
FIX_FILE_LINK="https://gist.github.com/santaklouse/a137ee51692b74d4cf2cc1bb68ed64ef/raw/CrossOver.sh?token=${TIMESTAMP}" | |
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 | |
# 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/null 2>&1 | |
if [ -f CrossOver.origin ]; then | |
echo 'original file found. Roll it back and exit.' | |
mv CrossOver.origin CrossOver | |
exit | |
fi; | |
echo 'original file not found.' |
Sometimes I would like to know how much Crossover gives back to the community to support the need for a service based on an annual subscription and cease and desist practices closer to the Microsoft of a few years ago than a company friendly to free software.
all i got was`Last login: Tue Mar 19 14:43:09 on ttys000
The default interactive shell is now zsh.
To update your account to use zsh, please run chsh -s /bin/zsh
.
For more details, please visit https://support.apple.com/kb/HT208050.
(base) Henrys-MacBook-Pro:~ henry$ bash -c "$(curl -fsSL https://gist.github.com/santaklouse/a137ee51692b74d4cf2cc1bb68ed64ef/raw/install.sh?token=$(date +%s))"
dyld[88993]: Library not loaded: @rpath/libssl.1.1.dylib
Referenced from: /Users/henry/anaconda3/lib/libcurl.4.dylib
Reason: tried: '/Users/henry/anaconda3/lib/libssl.1.1.dylib' (no such file), '/Users/henry/anaconda3/bin/../lib/libssl.1.1.dylib' (no such file), '/Users/henry/anaconda3/bin/../lib/libssl.1.1.dylib' (no such file), '/usr/local/lib/libssl.1.1.dylib' (no such file), '/usr/lib/libssl.1.1.dylib' (no such file, not in dyld cache)
(base) Henrys-MacBook-Pro:~ henry$
` cant tell if it worked
What are u all speaking about those bottles can anyone clarify me please...
I am here for the lifetime freee version of crosssover....!!!!!
@santaklouse
Here's an app i made to get it free forever: https://github.com/rhenrywarren/CrossoverFree
Or HERE
@Gururcharan let me explain.
On Crossover, u need to create a "bottle" that is just a folder, containing the minium aplications needed for u to run your game.
Each game needs diferent sub aplications like directx configs eand files. So normally U can create a different bottle for each game.
Why "bottle" and not "folder". Thats because crossover is q program running another program that simulates windows on unix since all personal computer exists, and the program is called "wine", a drink that normali is sell on "bottles".
And why we are talking about that? Because u can run. Crossover forever with some tricks, but each bottle has a limit trial time for u to test it. Soh, even u solve crossover basic resting the trial, the bottles will expire anyway.
U don't need to knkw anything about it if u just Buy the license the right way. If you don't have money, study it and u can run games without crosover with just wine thats free.
Finally got my hands on the latest CrossOver. The script should still work, albeit after a month or so your bottle will expire.
To advance bottle's time, its enough to delete some relevant registry entires.
- You may need to be offine for all of this to work! So shut wi-fi off for a minute!
- Open your bottle folder: Cmd+G in Finder to
~/Library/Application Support/CrossOver/Bottles/Steam
- Copy
system.reg
somewhere else as a backup, just in case you f it up.- Right click on
system.reg
and open with any text editor of your choice (like TextEdit)- Use Cmd+F to find
Software\\
CodeWeavers\\
CrossOver
- You should find a Crossover's block of "options", starting with
[
which ends several lines later (with a newline)- Remove that [Software....] header as well as anything below it, up until the next header (ex. in my case I remove [Software... line, then 4 lines after that)
- Save the file and launch your game/app again.
Someone can write a sed or perl command for doing the same thing, I cba right now. Maybe later.
tbd
It seems we don't needSULastCheckTime
and.eval
anymore. Onlyplutil -replace FirstRunDate -date "`date -u -v -3H '+%Y-%m-%dT%TZ'`" ~/Library/Preferences/com.codeweavers.CrossOver.plist
and that registry cleanup command.
Can confirm this work, I will make a script/app for it
probably some regex to edit the reg file
Just renewed Crossover (Version 23.7 (23.7.0.36580)) with the help of the above script. While it didn't run successfully on my computer, one can do the following to extend the trial:
~/Library/Preferences/com.codeweavers.CrossOver.plist
(you don't actually need to change the date)~/Library/Application\ Support/CrossOver/Bottles/*/.update-timestamp
Software\\CodeWeavers\\CrossOver
in ~/Library/Application\ Support/CrossOver/Bottles/*/system.reg
. Check djsmax's comment if you don't know how to do this.Prefer not to publish a script for this for legal reason, but hope this helps for any user with the same need.
Just renewed Crossover (Version 23.7 (23.7.0.36580)) with the help of the above script. While it didn't run successfully on my computer, one can do the following to extend the trial:
- Delete
~/Library/Preferences/com.codeweavers.CrossOver.plist
(you don't actually need to change the date)- Delete
~/Library/Application\ Support/CrossOver/Bottles/*/.update-timestamp
- Delete the whole section start with
Software\\CodeWeavers\\CrossOver
in~/Library/Application\ Support/CrossOver/Bottles/*/system.reg
. Check djsmax's comment if you don't know how to do this.Prefer not to publish a script for this for legal reason, but hope this helps for any user with the same need.
I can't see the /Bottles/ part it ends in CrossOver folder and don't have any Bottles folder inside of it
thanks
thanks
Worked?
I need to install Crossover first and them run this script, right?
when will this be updated for 24.01?
Does not work for Crossover v24
Alright, I'll delete it then.