Giter Site home page Giter Site logo

gibmacos's Introduction

Py2/py3 script that can download macOS components direct from Apple

Can also now build Internet Recovery USB installers from Windows using dd and 7zip.

NOTE: As of macOS 11 (Big Sur), Apple has changed the way they distribute macOS, and internet recovery USBs can no longer be built via MakeInstall on Windows. macOS versions through Catalina will still work though.

NOTE 2: As of macOS 11 (Big Sur), Apple distributes the OS via an InstallAssistant.pkg file. BuildmacOSInstallApp.command is not needed to create the install application when in macOS in this case - and you can simply run InstallAssistant.pkg, which will place the install app in your /Applications folder on macOS.

Thanks to:

gibmacos's People

Contributors

cclauss avatar cheesycod avatar cktse avatar corpnewt avatar dhinakg avatar florin9doi avatar ioiiio avatar jirutka avatar kinoute avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gibmacos's Issues

No drives showing on Win10 1903

I tried with a 10 different drives, running it as an admin and even changing the python script from detecting only 0 and 2 drives to 0,1,2,3,4,5,6. But it still doesn't show any drive.
When running
wmic logicaldisk get deviceid,filesystem,volumename,size,drivetype
It shows my usb drives as type 2, so i don't know if wmic is lying or if there's something broken for build 1903
2019 08 23-01 34

Bootice link is dead in script

Hey,

Bootice link in python script is dead. That causes script to exit. Alternative is to include bootice manually in scripts folder or update download link from somewhere else.

Module run has no attribute Run

Hi, I ran into this strange error.
Can you please advise.

Thanks!

#######################################################
 #                    Verifying OS                     #
#######################################################

Verifying OS name...
 - Name = NT
Verifying OS version...
 - Version = 17134

17134 >= 9600, continuing...
Traceback (most recent call last):
  File "C:\xxx\gibMacOS-master\MakeInstall.py", line 717, in <module>
    w = WinUSB()
  File "C:\xxx\gibMacOS-master\MakeInstall.py", line 12, in init
    self.d = diskwin.Disk()
  File "C:\xxx\gibMacOS-master\Scripts\diskwin.py", line 8, in init
    self.r = run.Run()
AttributeError: module 'run' has no attribute 'Run'

Windows 1903

I've tried to run the script with Windows 1903 and it just goes to EOF without doing anything.

Removed @echo off and I attached a screenshot.
{31885915-9FC3-4E5D-90DE-176691FFD225} png

Extraction error while trying to restore image

I am getting extraction error 2 while restoring image to drive.?
How can i solve this?
Just to test i tried to manually extract that .pkg file and in that case also 7zip gave extraction error.
I tried other version and 7zip gave payload error.
Please Help !!!!
Annotation 2019-07-29 135806

Add support for older releases

Using BDU I can get access to older releases e.g. Mavericks.
When changing to 10.9 in gibMacOS there appears to be no releases.

Installing Clover: Error communicating with github!

Hello. I am a new user of gibMacOS, so apologies if this is a known issue. I have followed the steps and am trying to build a USB using recovery media for Catalina. Everything seems to be working fine with MakeInstall.bat, but when it gets to "Installing Clover" it stops and presents the error message: "Error communicating with github!"

Any ideas? I have tried using a different PC and with both Admin and non-admin execution of the bat file. Any assistance appreciated! Thanks.
Annotation 2019-10-18 144516

No internet connection in recovery mode

I try install with high Sierra and clover 5092 but doesn’t work. I start the installer macOS with Ethernet but doesn’t download

I make the usb with makeinstall and I insert in the string (number of usb and r5092)

Does not accomodate for a user having Python 2.7 installed

I was trying to use this via the vanilla amd guide and I kept getting not found in path even after 32 bit and 64 bit versions were installed. I even verified that they were added to path and rebooted. So I opened a separate terminal and ran python and it opened a 2.7 instance so i just uninstalled it and the script started working after that.

Specifically on Windows 10.

Command not found!

run: {'args': ['diskpart', '/s', 'c:\users\user\appdata\local\temp\tmppuy4yn\diskpart.txt'], 'stream': True}

-> ('', 'Command not found!', 1)

If i execute cmd.exe and type in, all will be fine.
diskpart /s c:\users\user\appdata\local\temp\tmppuy4yn\diskpart.txt
(I commented out 331: shutil.rmtree(temp), and the file is there)

--
Same problem at line 614

"This may take some time" issue

Problem is after I ran MakeInstall.bat and chose my removable drive, it extracts the file like normal but when it comes to "This may take some time", it stops and nothing is installed on my removable drive. My drive just gets partitioned into CLOVER (200mb) with no files inside.

When I tried installing Clover only by entering 4C instead of 4, it runs normally and I actually get some folders on my drive.

Edit: Tried this on both my pc and laptop, same issue for both

Error writing file: 5 Access is denied.

I cannot figure out how to solve this damn problem! No matter what I do, I always get this error when it copies the image to the drive. I'm on an admin account. I run MakeInstall.bat as administrator, I've even given BATCH admin permissions. If anyone could help me out, that would be great.

MakeInstall.py AttributeError

I'm getting an AttributeError when running MakeInstall.py. I'm on the latest version of the master branch.

Python Version: 3.7
Admin Privileges: True
Error:
`
C:\ProgramData\Anaconda3\python.exe`` C:/Users/christian/Desktop/gibMacOS/MakeInstall.py
#######################################################

Verifying OS

#######################################################

Verifying OS name...

  • Name = NT
    Verifying OS version...
  • Version = 18362

18362 >= 9600, continuing...
Traceback (most recent call last):
File "C:/Users/christian/Desktop/gibMacOS/MakeInstall.py", line 700, in
w = WinUSB()
File "C:/Users/christian/Desktop/gibMacOS/MakeInstall.py", line 12, in init
self.d = diskwin.Disk()
File "C:\Users\christian\Desktop\gibMacOS\Scripts\diskwin.py", line 8, in init
self.r = run.Run()
AttributeError: module 'run' has no attribute 'Run'
`

Downloading from zero

hi . from the title, I have a potato internet that is so slow. it was like 300kbps.. while using your tool, somehow it did stuck on 54.2% on download 5GB worth of data. after the program did not respond, download progress never increases, I did try to restart the program. after that it trying to download from zero and not continuing the download progress. is there any implementation to continuing the downloading progress?

MakeInstall Script Error

Hey, so when I run MakeInstall.bat (as admin) this happened

Traceback (most recent call last):
  File "MakeInstall.py", line 773, in <module>
    w.main()
  File "MakeInstall.py", line 654, in main
    if not self.check_7z():
  File "MakeInstall.py", line 171, in check_7z
    return os.path.exists(self.z_path)
  File "C:\Users\Andrew Lee\AppData\Local\Programs\Python\Python37-32\lib\genericpath.py", line 19, in exists
    os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

Running Windows 10 October 2018 Update

Running Python 3.5

I do have 7zip installed

UPDATE: I had to put 7zip in my programs file in the c drive

No internet connection in recovery

I try install with high Sierra and 5092 but doesn’t work. I start the installer macOS with Ethernet but doesn’t download

I make the usb with makeinstall and I insert in the string (number of usb and r5092)

Linux support ?

Hi,
Just to be sure before I start changing things. What does it take to make "MakeInstall.py" run on Linux?
Best regards

Error

OS: windows 10 (inside a vm)

  1. Run MakeInstall.bat as admin.
  2. Select 1g - 1 is my USB stick.
  3. Error out.

DiskPart succeeded in creating the specified partition.

0 percent completed
0 percent completed
0 percent completed
0 percent completed
0 percent completed

100 percent completed

DiskPart successfully formatted the volume.

Virtual Disk Service error:
The operation is not supported on a non-empty removable disk.

I used the same usb stick before the same way (but in another win 10 which is also inside a vm) it works fine. But have no idea why it failed now.

Suggestions please.

Making a virtual USB (Hyper-V)

Hello, I am trying to build this Virtual External drive using hyper-v Mounted USB,

It appears to be able to write the recovery partitions, but crashes when looking for the DRIVE LETTER for the partition Zero.

Perhaps you can build in a wait?

A briefer way to get the latest version number of Python

In gibMacOS.bat and MakeInstall.bat , the latest version number of Python ( variable %release% ) was got by several steps:

  1. Save web page Python Releases for Windows as pyurl.txt;
  2. Find the line which contains "Latest Python 3 Release";
  3. Get the version number from this line.

    gibMacOS/gibMacOS.bat

    Lines 87 to 124 in ce6f62c

    powershell -command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (new-object System.Net.WebClient).DownloadFile('https://www.python.org/downloads/windows/','%TEMP%\pyurl.txt')"
    if not exist "%TEMP%\pyurl.txt" (
    goto checkpy
    )
    echo Parsing for latest...
    REM Got the file, let's parse it
    pushd "%TEMP%"
    set "release="
    for /F "tokens=*" %%x in (pyurl.txt) do (
    set "t=%%x"
    if /i not "%%x" == "" (
    if /i not "!t:Latest Python 3=!"=="!t!" (
    REM echo !t!
    set "release=!t!"
    )
    )
    )
    popd
    REM Let's replace the " with ' and split the string by spaces
    REM to get the actual version number
    set "release=!release:"='!"
    for /F "tokens=8* delims= " %%x in ("!release!") do (
    set "release=%%x"
    )
    REM Once more - split at the < and get the first
    for /F "tokens=1* delims=<" %%x in ("!release!") do (
    set "release=%%x"
    )
    echo Found Python !release! - Downloading...
    REM Let's delete our txt file now - we no longer need it
    del "%TEMP%\pyurl.txt"
    REM At this point - we should have the version number.
    REM We can build the url like so: "https://www.python.org/ftp/python/[version]/python-[version]-amd64.exe"
    set "url=https://www.python.org/ftp/python/!release!/python-!release!-amd64.exe"

Here I offer a briefer way to do that: ( Copy the following code as test.bat and try to run it)

@echo off
powershell -command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (new-object System.Net.WebClient).DownloadFile('https://www.python.org/downloads/windows/','pyurl.txt')"

:: The output of 'findstr /n /i /c:"Latest Python 3 Release" pyurl.txt' should be like: 
::     503:            <li><a href="/downloads/release/python-374/">Latest Python 3 Release - Python 3.7.4</a></li>
for /f "tokens=9 delims= " %%x in ('findstr /n /i /c:"Latest Python 3 Release" pyurl.txt') do ( set release="%%x")
:: %%x is like: 3.7.4</a></li>
:: Use ` set release="%%x" ` instead of ` set "release=%%x" `, since %%x contains '<' and '>'
:: And now %release% is "3.7.4</a></li>" , containing "" , so next command should not be:
:: for /f "tokens=1 delims=<" %%x in ("%release%") do ( set "release=%%x" )
:: no additional ""
for /f "tokens=1 delims=<" %%x in (%release%) do ( set "release=%%x" )

echo release: %release%
REM del pyurl.txt
pause

Only two commands are needed to get the %release% .
( The /n option of command findstr , which shows additional line number 503, is not essential.)

DiskPart exited with non-zero status (2147755026). Aborting.

I want to make install for flash drive, but i have an error:
Using MBR...

Microsoft DiskPart, ўҐабЁп 10.0.17763.1

(C) Љ®аЇ®а жЁп Њ ©Єа®б®дв (Microsoft Corporation).
Ќ  Є®¬ЇмовҐаҐ: DESKTOP-UKKPN4R

‚лЎа ­ ¤ЁбЄ 4.

ЋиЁЎЄ  б«г¦Ўл ўЁавг «м­ле ¤ЁбЄ®ў:
ЌҐв ­®бЁвҐ«п ў гбва®©б⢥.

DiskPart exited with non-zero status (2147755026). Aborting.

Add make vmware or virtualBox ISO creator

I had use gibMacOS fetched MacOS, I need run MacOS in vmwaer or virtualbox, during the install, both need bootable ISO or CDR, need add new funtion to write bootable ISO or CDR file.

There is an error on installing Clover

Gathering info...

  • Checking https://api.github.com/repos/CloverHackyColor/CloverBootloader/releases
  • Got CloverISO-5099.tar.lzma
    Downloading...
    Downloaded 2.47 MB of 2.47 MB (100.00%)
    Extracting CloverISO-5099.tar.lzma...
    Extracting CloverISO-5099.tar...
    Extracting EFI from Clover-v2.5k-5099-X64.iso...
    Extracting boot0af from Clover-v2.5k-5099-X64.iso...
    Extracting boot1f32alt from Clover-v2.5k-5099-X64.iso...
    Extracting boot6 from Clover-v2.5k-5099-X64.iso...
    No partitions located on disk!

How do i fix this?

#######################################################

Erasing With DiskPart

#######################################################

Using MBR...

DiskPart exited with non-zero status (1). Aborting.

No partition located on disk!

Gathering info...

  • Got CloverISO-5092.tar.lzma
    Downloading...
    Downloaded 2.51 MB of 2.51 MB (100.00%)
    Extracting CloverISO-5092.tar.lzma...
    Extracting CloverISO-5092.tar...
    Extracting EFI from Clover-v2.5k-5092-X64.iso...
    Extracting boot0af from Clover-v2.5k-5092-X64.iso...
    Extracting boot1f32alt from Clover-v2.5k-5092-X64.iso...
    Extracting boot6 from Clover-v2.5k-5092-X64.iso...
    No partitions located on disk!

Press [enter] to return...

KeyError: 'partitions'

I just was following AMD OSX Vanilla install guide and everything was fine until I began making usb installation drive. After script completed downloading clover I'm getting this error: Downloaded 2.70 MB of 2.70 MB (100.00%)
Extracting CloverISO-4934.tar.lzma...
Extracting CloverISO-4934.tar...
Extracting EFI from Clover-v2.4k-4934-X64.iso...
Extracting boot0af from Clover-v2.4k-4934-X64.iso...
Extracting boot1f32alt from Clover-v2.4k-4934-X64.iso...
Extracting boot6 from Clover-v2.4k-4934-X64.iso...
Traceback (most recent call last):
File "c:\Users\shrisha\Desktop\gibMacOS-master\MakeInstall.py", line 763, in
w.main()
File "c:\Users\shrisha\Desktop\gibMacOS-master\MakeInstall.py", line 759, in main
self.diskpart_erase(selected_disk, use_gpt)
File "c:\Users\shrisha\Desktop\gibMacOS-master\MakeInstall.py", line 346, in diskpart_erase
self.select_package(disk)
File "c:\Users\shrisha\Desktop\gibMacOS-master\MakeInstall.py", line 368, in select_package
self.select_package(disk)
File "c:\Users\shrisha\Desktop\gibMacOS-master\MakeInstall.py", line 442, in select_package
self.dd_image(disk, os.path.join(temp, hfs))
File "c:\Users\shrisha\Desktop\gibMacOS-master\MakeInstall.py", line 480, in dd_image
self.install_clover(disk)
File "c:\Users\shrisha\Desktop\gibMacOS-master\MakeInstall.py", line 573, in install_clover
part = self.d.disks[str(disk["index"])]["partitions"].get("0",{}).get("letter",None) # get the first partition's letter
KeyError: 'partitions'
Could someone explain me please what I'm doing wrong. And I executing all scripts from Administrator command line window.

MakeInstall.bat error "no usable free extent could be found"

Hi,

I'm trying to run the makeinstall.bat script, but I always get the same "no usable free extent could be found" error.

I've tried several brands of usb flash drives, and even SD cards with an USB reader, but the error persists.

I've also tried a SATA drive inside a USB cage, but it doesn't even appear in the list to choose it!!

Error while Executing MakInstall.py -- run module has no attribute Run()

#######################################################

Verifying OS

#######################################################

Verifying OS name...

  • Name = NT
    Verifying OS version...
  • Version = 18362

18362 >= 9600, continuing...
Traceback (most recent call last):
File "MakeInstall.py", line 705, in
w = WinUSB()
File "MakeInstall.py", line 12, in init
self.d = diskwin.Disk()
File "C:\Users***\Desktop\gibMacOS\Scripts\diskwin.py", line 8, in init
self.r = run.Run()
AttributeError: module 'run' has no attribute 'Run'

After downloading, make into one DMG

Is there a way to make all the files into one DMG to be able to send to friend online. When I run MakeInstall it seems like it is only burning to a USB Drive.

diskpart error on Windows 10 1903 and 1511

Hello, i am trying to use gibMacOS to download Vanilla macOS so i can make hackintosh,
but on both of my machines (my laptop running w10 1903 and my main pc running w10 1511)
i get his error:

"Using MBR...

DiskPart exited with non-zero status (1). Aborting.

Press [enter] to return..."

if there is a fix for that or a way to skip format with diskpart, i would appreciate ^^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.