溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

制作macOS 10.13.3安裝盤

發(fā)布時(shí)間:2020-05-23 07:21:43 來源:網(wǎng)絡(luò) 閱讀:1477 作者:盧卡斯CN 欄目:系統(tǒng)運(yùn)維

app store下載macOS High Sierra

只能下載最新版的macOS,老版的已經(jīng)下架了。有兩種情況,一種是大小19M的app,一種是5G多的app。前者參考Creating a macOS High Sierra Installation ISO Image,后者參考製作 macOS High Sierra 10.13 的可開機(jī)安裝隨身碟及 ISO 映像檔。本人下載的是19M的app,參考的前者。

制作安裝鏡像

先準(zhǔn)備一個(gè)U盤,在windows的diskpart中利用

sele disk x
clean
convert gpt
#有些時(shí)候磁盤efi分區(qū)少于200M,在mac上抹掉會(huì)失敗,顯示沒有足夠空間
create partition efi size=300

轉(zhuǎn)換成gpt格式,并在macOS中抹掉該U盤。然后,打開安裝macOS High Sierra的App,選擇U盤,此時(shí)安裝程序開始下載安裝鏡像,下載完成需要重啟時(shí)退出,開始制作安裝鏡像。

#將下載的鏡像合并到安裝app中
mv "/macOS Install Data/*" "/Applications/Install macOS High Sierra.app/Contents/SharedSupport"
#創(chuàng)建并掛載一個(gè)磁盤
hdiutil create -o /tmp/HighSierra -size 12800m -layout SPUD -fs HFS+J -type SPARSE
hdiutil attach /tmp/HighSierra.sparseimage -noverify -nobrowse -mountpoint /Volumes/Untitled
#創(chuàng)建可啟動(dòng)磁盤
caffeinate asr restore -source "/Applications/Install macOS High Sierra.app/Contents/SharedSupport/BaseSystem.dmg" -target /Volumes/Untitled -noprompt -noverify -erase
#替換其中的安裝app
sudo rm -rf "/Volumes/OS X Base System/Install macOS High Sierra.app"
caffeinate sudo cp -a "/Applications/Install macOS High Sierra.app" "/Volumes/OS X Base System/"
cp "/Applications/Install macOS High Sierra.app/Contents/Resources/InstallAssistant.icns" "/Volumes/OS X Base System/.VolumeIcon.icns"
SetFile -a C "/Volumes/OS X Base System/"
diskutil rename "OS X Base System" "Install macOS High Sierra"
hdiutil detach "/Volumes/Install macOS High Sierra"
hdiutil resize -size min /tmp/HighSierra.sparseimage
caffeinate hdiutil convert /tmp/HighSierra.sparseimage -format UDTO -o /tmp/HighSierra
mv /tmp/HighSierra.cdr /tmp/HighSierra.iso
#進(jìn)入安裝界面,創(chuàng)建安裝磁盤,開始安裝,要重啟時(shí)關(guān)閉電源進(jìn)入固件,重新從CD啟動(dòng),復(fù)制安裝鏡像到安裝磁盤。
cp "/Volumes/Install macOS High Sierra/Install macOS High Sierra.app/Contents/SharedSupport/InstallESDDmg.pkg" "/Volumes/Macintosh HD/macOS Install Data/"

unlocker

正常情況下VMware是不開放安裝macOS的,需要patch。github下載DrDonk/unlocker,右鍵管理員打開win-install.cmd,正常安裝,打開電源前修改配置文件,添加:

smc.version = "0"

最后,在app store中搜索xcode安裝即可。

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI