def __init__(self):
     self.u = utils.Utils("MakeInstall")
     if not self.u.check_admin():
         # Try to self-elevate
         self.u.elevate(os.path.realpath(__file__))
         exit()
     self.min_plat = 9600
     # Make sure we're on windows
     self.verify_os()
     # Setup initial vars
     self.d = diskwin.Disk()
     self.dl = downloader.Downloader()
     self.r = run.Run()
     self.scripts = "Scripts"
     self.s_path = os.path.join(os.path.dirname(os.path.realpath(__file__)),
                                self.scripts)
     # self.dd_url  = "http://www.chrysocome.net/downloads/ddrelease64.exe"
     self.dd_url = "https://github.com/corpnewt/gibMacOS/files/4573241/ddrelease64.exe.zip"  # Rehost due to download issues
     self.dd_name = ".".join(os.path.basename(self.dd_url).split(
         ".")[:-1])  # Get the name without the last extension
     self.z_json = "https://sourceforge.net/projects/sevenzip/best_release.json"
     self.z_url2 = "https://www.7-zip.org/a/7z1806-x64.msi"
     self.z_url = "https://www.7-zip.org/a/7z[[vers]]-x64.msi"
     self.z_name = "7z.exe"
     self.bi_url = "https://raw.githubusercontent.com/corpnewt/gibMacOS/master/Scripts/BOOTICEx64.exe"
     self.bi_name = "BOOTICEx64.exe"
     self.clover_url = "https://api.github.com/repos/CloverHackyColor/CloverBootloader/releases"
     self.dids_url = "https://api.github.com/repos/dids/clover-builder/releases"
     self.oc_url = "https://api.github.com/repos/acidanthera/OpenCorePkg/releases"
     self.oc_boot = "boot"
     self.oc_boot0 = "boot0"
     self.oc_boot1 = "boot1f32"
     # self.oc_boot_url = "https://github.com/acidanthera/OpenCorePkg/raw/master/Utilities/LegacyBoot/"
     self.oc_boot_url = "https://github.com/acidanthera/OpenCorePkg/raw/870017d0e5d53abeaf0347997da912c3e382a04a/Utilities/LegacyBoot/"
     self.diskpart = os.path.join(os.environ['SYSTEMDRIVE'] + "\\",
                                  "Windows", "System32", "diskpart.exe")
     # From Tim Sutton's brigadier:  https://github.com/timsutton/brigadier/blob/master/brigadier
     self.z_path = None
     self.z_path64 = os.path.join(os.environ['SYSTEMDRIVE'] + "\\",
                                  "Program Files", "7-Zip", "7z.exe")
     self.z_path32 = os.path.join(os.environ['SYSTEMDRIVE'] + "\\",
                                  "Program Files (x86)", "7-Zip", "7z.exe")
     self.recovery_suffixes = ("recoveryhdupdate.pkg",
                               "recoveryhdmetadmg.pkg")
     self.dd_bootsector = True
     self.boot0 = "boot0af"
     self.boot1 = "boot1f32alt"
     self.boot = "boot6"
     self.efi_id = "c12a7328-f81f-11d2-ba4b-00a0c93ec93b"  # EFI
     self.bas_id = "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7"  # Microsoft Basic Data
     self.hfs_id = "48465300-0000-11AA-AA11-00306543ECAC"  # HFS+
     self.rec_id = "426F6F74-0000-11AA-AA11-00306543ECAC"  # Apple Boot partition (Recovery HD)
     self.show_all_disks = False
Esempio n. 2
0
    def __init__(self):
        self.d = downloader.Downloader()
        self.u = utils.Utils("gibMacOS")
        self.r = run.Run()
        self.min_w = 80
        self.min_h = 24
        if os.name == "nt":
            self.min_w = 120
            self.min_h = 30
        self.resize()

        self.catalog_suffix = {
            "public": "beta",
            "publicrelease": "",
            "customer": "customerseed",
            "developer": "seed"
        }
        self.current_macos = 17  # if > 16, assume X-5, else 10.X
        self.min_macos = 5
        self.print_urls = False
        self.mac_os_names_url = {
            "8": "mountainlion",
            "7": "lion",
            "6": "snowleopard",
            "5": "leopard"
        }
        self.version_names = {
            "tiger": "10.4",
            "leopard": "10.5",
            "snow leopard": "10.6",
            "lion": "10.7",
            "mountain lion": "10.8",
            "mavericks": "10.9",
            "yosemite": "10.10",
            "el capitan": "10.11",
            "sierra": "10.12",
            "high sierra": "10.13",
            "mojave": "10.14",
            "catalina": "10.15",
            "big sur": "11",
            "monterey": "12"
        }
        self.current_catalog = "publicrelease"
        self.catalog_data = None
        self.scripts = "Scripts"
        self.plist = "sucatalog.plist"
        self.saves = "macOS Downloads"
        self.save_local = False
        self.force_local = False
        self.find_recovery = False
        self.recovery_suffixes = ("RecoveryHDUpdate.pkg",
                                  "RecoveryHDMetaDmg.pkg")
Esempio n. 3
0
 def __init__(self, **kwargs):
     self.dl   = downloader.Downloader()
     self.u    = utils.Utils("SSDT Time")
     self.r    = run.Run()
     self.re   = reveal.Reveal()
     try:
         self.d = dsdt.DSDT()
     except Exception as e:
         print("Something went wrong :( - Aborting!\n - {}".format(e))
         exit(1)
     self.iasl = None
     self.dsdt = None
     self.scripts = "Scripts"
     self.output = "Results"
     self.legacy_irq = ["TMR","TIMR","IPIC","RTC"] # Could add HPET for extra patch-ness, but shouldn't be needed
     self.target_irqs = [0,8,11]
     self.illegal_names = ("XHC1","EHC1","EHC2","PXSX")
Esempio n. 4
0
 def __init__(self):
     self.u = utils.Utils("MakeInstall")
     self.min_plat = 9600
     # Make sure we're on windows
     self.verify_os()
     # Setup initial vars
     self.d = diskwin.Disk()
     self.dl = downloader.Downloader()
     self.r = run.Run()
     self.scripts = "Scripts"
     self.s_path = os.path.join(os.path.dirname(os.path.realpath(__file__)),
                                self.scripts)
     self.dd_url = "http://www.chrysocome.net/downloads/ddrelease64.exe"
     self.dd_name = os.path.basename(self.dd_url)
     self.z_json = "https://sourceforge.net/projects/sevenzip/best_release.json"
     self.z_url2 = "https://www.7-zip.org/a/7z1806-x64.msi"
     self.z_url = "https://www.7-zip.org/a/7z[[vers]]-x64.msi"
     self.z_name = "7z.exe"
     self.bi_url = "https://raw.githubusercontent.com/corpnewt/gibMacOS/master/Scripts/BOOTICEx64.exe"
     self.bi_name = "BOOTICEx64.exe"
     # self.clover_url = "https://api.github.com/repos/dids/clover-builder/releases/latest"
     # self.clover_url = "https://api.github.com/repos/CloverHackyColor/CloverBootloader/releases/latest"
     self.clover_url = "https://api.github.com/repos/CloverHackyColor/CloverBootloader/releases"
     self.oc_url = "https://api.github.com/repos/Acidanthera/OpenCorePkg/releases"
     # From Tim Sutton's brigadier:  https://github.com/timsutton/brigadier/blob/master/brigadier
     self.z_path = None
     self.z_path64 = os.path.join(os.environ['SYSTEMDRIVE'] + "\\",
                                  "Program Files", "7-Zip", "7z.exe")
     self.z_path32 = os.path.join(os.environ['SYSTEMDRIVE'] + "\\",
                                  "Program Files (x86)", "7-Zip", "7z.exe")
     self.recovery_suffixes = ("recoveryhdupdate.pkg",
                               "recoveryhdmetadmg.pkg")
     self.dd_bootsector = True
     self.boot0 = "boot0af"
     self.boot1 = "boot1f32"
     self.boot = "boot"
     self.oc_boot_loc = "Utilities/BootInstall/boot"
     self.efi_id = "c12a7328-f81f-11d2-ba4b-00a0c93ec93b"  # EFI
     self.bas_id = "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7"  # Microsoft Basic Data
     self.hfs_id = "48465300-0000-11AA-AA11-00306543ECAC"  # HFS+
     self.rec_id = "426F6F74-0000-11AA-AA11-00306543ECAC"  # Apple Boot partition (Recovery HD)
     self.show_all_disks = False
     self.bootloader = ""