MCPcopy
hub / github.com/corpnewt/gibMacOS / __init__

Method __init__

BuildmacOSInstallApp.py:8–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6
7class 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)

Callers

nothing calls this directly

Calls 1

headMethod · 0.80

Tested by

no test coverage detected