Guest User

Untitled

a guest
Feb 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. #!/bin/sh
  2. #Change version to the proper version. This script no longer upgrades ports.
  3. WORKDIR="$(dirname "$0")/"
  4.  
  5. cd "$WORKDIR"
  6. cd "../../../../"
  7. rm -rf WineskinSettings.app/
  8. rm -rf Wineskin.app
  9. cd "$WORKDIR"
  10. cp -rf "Wineskin.app" "../../../../"
  11.  
  12. cd "$WORKDIR"
  13. cd "../../../../"
  14. cd "Contents"
  15. rm -rf MacOS
  16. mkdir MacOS
  17. cd "$WORKDIR"
  18. ditto "MacOS" "../../../../Contents/MacOS/"
  19.  
  20. cd "$WORKDIR"
  21. cd "../../../../"
  22. cd "Contents"
  23. cd "Resources"
  24. rm -rf "English.lproj"
  25. rm -rf "WineskinEngine.bundle"
  26. cd "$WORKDIR"
  27. ditto "Resources" "../../../../Contents/Resources/"
  28.  
  29. cd "$WORKDIR"
  30. cd "../../../../"
  31. cd "Contents"
  32. "$WORKDIR"PlistBuddy -c "Set CFBundleVersion Wineskin\ 2.0RC3a" Info.plist
  33. "$WORKDIR"PlistBuddy -c "Set CFBundleShortVersionString Wineskin\ 2.0RC3a" Info.plist
  34. "$WORKDIR"PlistBuddy -c "Set NSMainNibFile MainMenu.nib" Info.plist
  35. "$WORKDIR"PlistBuddy -c "Set NSPrincipalClass NSApplication" Info.plist
  36. "$WORKDIR"PlistBuddy -c "Add WINEDEBUG= string err+all,fixme+all" Info.plist
  37.  
  38. THEOSVERSION="$(/usr/bin/sw_vers | grep 'ProductVersion:' | grep -o '[0-9]*\.[3-9]')"
  39. if [ "$THEOSVERSION" == "10.4" ]
  40. then
  41. export OSASCRIPTRUNLINE="/usr/bin/osascript"
  42. else
  43. export OSASCRIPTRUNLINE="/usr/bin/arch -i386 /usr/bin/osascript"
  44. fi
  45. $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