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
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 = ""