forked from coolrepo99/unlocker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
osx-install.sh
executable file
·28 lines (22 loc) · 789 Bytes
/
osx-install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
set -e
echo VMware Unlocker 2.0.9
echo ===============================
echo Copyright: Dave Parsons 2011-16
# Ensure we only use unmodified commands
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
# Make sure only root can run our script
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
echo Creating backup folder...
rm -rf ./backup
mkdir -p "./backup"
cp -v /Applications/VMware\ Fusion.app/Contents/Library/vmware-vmx ./backup/
cp -v /Applications/VMware\ Fusion.app/Contents/Library/vmware-vmx-debug ./backup/
cp -v /Applications/VMware\ Fusion.app/Contents/Library/vmware-vmx-stats ./backup/
cp -v /Applications/VMware\ Fusion.app/Contents/Frameworks/libvmwarebase.dylib ./backup/
echo Patching...
python ./unlocker.py
echo Finished!