Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #Change version to the proper version. This script no longer upgrades ports.
- WORKDIR="$(dirname "$0")/"
- cd "$WORKDIR"
- cd "../../../../"
- rm -rf WineskinSettings.app/
- rm -rf Wineskin.app
- cd "$WORKDIR"
- cp -rf "Wineskin.app" "../../../../"
- cd "$WORKDIR"
- cd "../../../../"
- cd "Contents"
- rm -rf MacOS
- mkdir MacOS
- cd "$WORKDIR"
- ditto "MacOS" "../../../../Contents/MacOS/"
- cd "$WORKDIR"
- cd "../../../../"
- cd "Contents"
- cd "Resources"
- rm -rf "English.lproj"
- rm -rf "WineskinEngine.bundle"
- cd "$WORKDIR"
- ditto "Resources" "../../../../Contents/Resources/"
- cd "$WORKDIR"
- cd "../../../../"
- cd "Contents"
- "$WORKDIR"PlistBuddy -c "Set CFBundleVersion Wineskin\ 2.0RC3a" Info.plist
- "$WORKDIR"PlistBuddy -c "Set CFBundleShortVersionString Wineskin\ 2.0RC3a" Info.plist
- "$WORKDIR"PlistBuddy -c "Set NSMainNibFile MainMenu.nib" Info.plist
- "$WORKDIR"PlistBuddy -c "Set NSPrincipalClass NSApplication" Info.plist
- "$WORKDIR"PlistBuddy -c "Add WINEDEBUG= string err+all,fixme+all" Info.plist
- THEOSVERSION="$(/usr/bin/sw_vers | grep 'ProductVersion:' | grep -o '[0-9]*\.[3-9]')"
- if [ "$THEOSVERSION" == "10.4" ]
- then
- export OSASCRIPTRUNLINE="/usr/bin/osascript"
- else
- export OSASCRIPTRUNLINE="/usr/bin/arch -i386 /usr/bin/osascript"
- fi
- $OSASCRIPTRUNLINE -e "tell application \"System Events\" to activate" -e "tell application \"System Events\" to display dialog \"Wineskin has been updated. It is using WS7Wine1.3.13." buttons {\"OK\"} default button \"OK\" with icon 0"
Add Comment
Please, Sign In to add comment