mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-14 20:58:21 +10:00
1 line
5.9 KiB
JavaScript
1 line
5.9 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{380:function(t,a,e){t.exports=e.p+"assets/img/munki.cb5c523a.png"},381:function(t,a,e){t.exports=e.p+"assets/img/munki-process.c0791880.png"},382:function(t,a,e){t.exports=e.p+"assets/img/munki-done-2.581ad405.png"},383:function(t,a,e){t.exports=e.p+"assets/img/munki-dmg.893a0e5d.png"},384:function(t,a,e){t.exports=e.p+"assets/img/format-usb.d6438596.png"},385:function(t,a,e){t.exports=e.p+"assets/img/createinstallmedia.800575fb.png"},404:function(t,a,e){"use strict";e.r(a);var s=e(25),n=Object(s.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"download-and-build-macos-installers"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#download-and-build-macos-installers"}},[t._v("#")]),t._v(" Download and build macOS Installers")]),t._v(" "),s("ul",[s("li",[s("a",{attrs:{href:"#downloading"}},[t._v("Downloading")])]),t._v(" "),s("li",[s("a",{attrs:{href:"#building"}},[t._v("Building")])])]),t._v(" "),s("p",[t._v("This doc is centered around downloading and writing the macOS installer to a USB. If you're already familiar with how to do this, you can skip.")]),t._v(" "),s("ul",[s("li",[t._v("Note: 16GB+ USB will be required for the installer")])]),t._v(" "),s("h2",{attrs:{id:"downloading"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#downloading"}},[t._v("#")]),t._v(" Downloading")]),t._v(" "),s("p",[t._v("The simplest way to download macOS installs would be to use installinstallmacos:")]),t._v(" "),s("div",{staticClass:"language-sh extra-class"},[s("pre",{pre:!0,attrs:{class:"language-sh"}},[s("code",[s("span",{pre:!0,attrs:{class:"token function"}},[t._v("mkdir")]),t._v(" ~/macOS-installer "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("&&")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token builtin class-name"}},[t._v("cd")]),t._v(" ~/macOS-installer "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("&&")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("curl")]),t._v(" -O https://raw.githubusercontent.com/munki/macadmin-scripts/main/installinstallmacos.py "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("&&")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("sudo")]),t._v(" python installinstallmacos.py\n")])])]),s("p",[s("img",{attrs:{src:e(380),alt:""}})]),t._v(" "),s("p",[t._v("As you can see, we get a nice list of macOS installers. If you need a particular versions of macOS, you can select it by typing the number next to it. For this example we'll choose 10:")]),t._v(" "),s("p",[s("img",{attrs:{src:e(381),alt:""}})]),t._v(" "),s("p",[t._v("This is going to take a while as we're downloading the entire 12GB+ macOS installer.")]),t._v(" "),s("p",[t._v("Once finished, you'll find in your "),s("code",[t._v("~/macOS-Installer/")]),t._v(" folder a DMG containing the macOS Installer, called "),s("code",[t._v("Install_macOS_11.1-20C69.dmg")]),t._v(" for example. Mount it and you'll find the installer application.")]),t._v(" "),s("ul",[s("li",[t._v("Note: We recommend to move the Install macOS.app into the "),s("code",[t._v("/Applications")]),t._v(" folder, as we'll be executing commands from there.")]),t._v(" "),s("li",[t._v("Note 2: Running Cmd+Shift+G in Finder will allow you to easily jump to "),s("code",[t._v("~/macOS-installer")])])]),t._v(" "),s("p",[s("img",{attrs:{src:e(382),alt:""}})]),t._v(" "),s("p",[s("img",{attrs:{src:e(383),alt:""}})]),t._v(" "),s("h2",{attrs:{id:"building"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#building"}},[t._v("#")]),t._v(" Building")]),t._v(" "),s("p",[t._v("Now we'll be formatting the USB to prep for both the macOS installer and OpenCore. We'll want to use macOS Extended (HFS+) with a GUID partition map(Using GUID is important for the patcher). This will create two partitions: the main "),s("code",[t._v("MyVolume")]),t._v(" and a second called "),s("code",[t._v("EFI")]),t._v(" which is used as a boot partition where your Mac's firmware will check for boot files. "),s("code",[t._v("EFI")]),t._v(" partitions will be hidden by default, so don't worry if you don't immediately see them.")]),t._v(" "),s("ul",[s("li",[t._v("Note: By default, Disk Utility only shows partitions – press Cmd/Win+2 to show all devices (alternatively you can press the View button)")])]),t._v(" "),s("p",[s("img",{attrs:{src:e(384),alt:"Formatting the USB"}})]),t._v(" "),s("p",[t._v("Next run the "),s("code",[t._v("createinstallmedia")]),t._v(" command provided by "),s("a",{attrs:{href:"https://support.apple.com/en-us/HT201372",target:"_blank",rel:"noopener noreferrer"}},[t._v("Apple"),s("OutboundLink")],1),t._v(". Note that the command is made for USB's formatted with the name "),s("code",[t._v("MyVolume")]),t._v(":")]),t._v(" "),s("div",{staticClass:"language-sh extra-class"},[s("pre",{pre:!0,attrs:{class:"language-sh"}},[s("code",[s("span",{pre:!0,attrs:{class:"token function"}},[t._v("sudo")]),t._v(" /Applications/Install"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v(" macOS"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v(" Big"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v(" Sur.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume\n")])])]),s("ul",[s("li",[t._v("Note: You can also replace the "),s("code",[t._v("createinstallmedia")]),t._v(" path with that of where your installer's located (same idea with the drive name).")])]),t._v(" "),s("p",[s("img",{attrs:{src:e(385),alt:""}})]),t._v(" "),s("h1",{attrs:{id:"once-finished-head-to-building-and-installing-opencore"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#once-finished-head-to-building-and-installing-opencore"}},[t._v("#")]),t._v(" Once finished, head to "),s("RouterLink",{attrs:{to:"/BUILD.html"}},[t._v("Building and installing OpenCore")])],1)])}),[],!1,null,null,null);a.default=n.exports}}]); |