| 6 | |
| 7 | class buildMacOSInstallApp: |
| 8 | def __init__(self): |
| 9 | self.r = run.Run() |
| 10 | self.u = utils.Utils("Build macOS Install App") |
| 11 | self.target_files = [ |
| 12 | "BaseSystem.dmg", |
| 13 | "BaseSystem.chunklist", |
| 14 | "InstallESDDmg.pkg", |
| 15 | "InstallInfo.plist", |
| 16 | "AppleDiagnostics.dmg", |
| 17 | "AppleDiagnostics.chunklist" |
| 18 | ] |
| 19 | # Verify we're on macOS - this doesn't work anywhere else |
| 20 | if not sys.platform == "darwin": |
| 21 | self.u.head("WARNING") |
| 22 | print("") |
| 23 | print("This script only runs on macOS!") |
| 24 | print("") |
| 25 | exit(1) |
| 26 | |
| 27 | def mount_dmg(self, dmg, no_browse = False): |
| 28 | # Mounts the passed dmg and returns the mount point(s) |