Advertisement
Guest User

Java 1.6 for Mac OS Catalina Workaround

a guest
Oct 14th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. set theDMG to choose file with prompt "Please select javaforosx.dmg:" of type {"dmg"}
  2. do shell script "hdiutil mount " & quoted form of POSIX path of theDMG
  3. do shell script "pkgutil --expand /Volumes/Java\\ for\\ macOS\\ 2017-001/JavaForOSX.pkg ~/tmp"
  4. do shell script "hdiutil unmount /Volumes/Java\\ for\\ macOS\\ 2017-001/"
  5. do shell script "sed -i '' 's/return false/return true/g' ~/tmp/Distribution"
  6. do shell script "pkgutil --flatten ~/tmp ~/Desktop/Java.pkg"
  7. do shell script "rm -rf ~/tmp"
  8. display dialog "Modified Java.pkg saved on desktop" buttons {"Ok"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement