手动下载macOS安装包

macOS的系统下载看起来非常麻烦,实际上,在苹果的服务器上是可以下载到安装包的

访问https://swscan.apple.com/content/catalogs/others/index-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz

搜索“com.apple.plist.InstallInfo”

找到其中一个结果:

<key>041-06734</key>
            <dict>
                <key>ServerMetadataURL</key>
                <string>http://swcdn.apple.com/content/downloads/43/22/041-06734/tto8mjl3g17oebel0u9zt7duiubusd1r6t/InstallAssistantAuto.smd</string>
                <key>Packages</key>
                <array>
                    <dict>
                        .....
                        <key>URL</key>
                        <string>http://swcdn.apple.com/content/downloads/43/22/041-06734/tto8mjl3g17oebel0u9zt7duiubusd1r6t/InstallAssistantAuto.pkg</string>
                        .....
                    </dict>
                    <dict>
                        <key>Size</key>
                        <integer>3008010</integer>
                        .....
                        <key>URL</key>
                        <string>http://swcdn.apple.com/content/downloads/43/22/041-06734/tto8mjl3g17oebel0u9zt7duiubusd1r6t/AppleDiagnostics.dmg</string>
                        .....
                    </dict>
                    <dict>
                        <key>Size</key>
                        <integer>328</integer>
                        <key>URL</key>
                        <string>http://swcdn.apple.com/content/downloads/43/22/041-06734/tto8mjl3g17oebel0u9zt7duiubusd1r6t/AppleDiagnostics.chunklist</string>
                    </dict>
                    .....
                    <dict>
                        <key>Size</key>
                        <integer>1584</integer>
                        <key>URL</key>
                        <string>http://swcdn.apple.com/content/downloads/43/22/041-06734/tto8mjl3g17oebel0u9zt7duiubusd1r6t/InstallInfo.plist</string>
                    </dict>
                    .....
                    <dict>
                        <key>Size</key>
                        <integer>485151924</integer>
                        .......
                        <key>URL</key>
                        <string>http://swcdn.apple.com/content/downloads/43/22/041-06734/tto8mjl3g17oebel0u9zt7duiubusd1r6t/BaseSystem.dmg</string>
                        <key>IntegrityDataSize</key>
                        <integer>1760</integer>
                    </dict>
                    .......
                    <dict>
                        <key>Size</key>
                        <integer>1984</integer>
                        <key>URL</key>
                        <string>http://swcdn.apple.com/content/downloads/43/22/041-06734/tto8mjl3g17oebel0u9zt7duiubusd1r6t/BaseSystem.chunklist</string>
                    </dict>
                    .....
                    <dict>
                        <key>Digest</key>
                        <string>c311b85986d767e2477e5593a8980c56599ad024</string>
                        <key>Size</key>
                        <integer>5507649345</integer>
                        .....
                        <string>http://swcdn.apple.com/content/downloads/43/22/041-06734/tto8mjl3g17oebel0u9zt7duiubusd1r6t/InstallESDDmg.pkg</string>
                        .....
                    </dict>
                </array>
                <key>ExtendedMetaInfo</key>
                <dict>
                    <key>InstallAssistantPackageIdentifiers</key>
                    <dict>
                        <key>InstallInfo</key>
                        <string>com.apple.plist.InstallInfo</string>
                        <key>OSInstall</key>
                        <string>com.apple.mpkg.OSInstall</string>
                    </dict>
                </dict>
                <key>PostDate</key>
                <date>2018-11-13T20:15:23Z</date>
                ......
                <key>Distributions</key>
                <dict>
                    ....
                    <key>zh_CN</key>
                    <string>https://swdist.apple.com/content/downloads/43/22/041-06734/tto8mjl3g17oebel0u9zt7duiubusd1r6t/041-06734.zh_CN.dist</string>
                    .....
                </dict>
            </dict>

其中,https://swdist.apple.com/content/downloads/43/22/041-06734/tto8mjl3g17oebel0u9zt7duiubusd1r6t/041-06734.zh_CN.dist

可以看到当前要下载的系统的版本号

18B3094

10.14.1

总的来说,就是下载这些文件:

http://swcdn.apple.com/content/downloads/43/22/041-06734/tto8mjl3g17oebel0u9zt7duiubusd1r6t/InstallESDDmg.pkg
http://swcdn.apple.com/content/downloads/43/22/041-06734/tto8mjl3g17oebel0u9zt7duiubusd1r6t/BaseSystem.chunklist
http://swcdn.apple.com/content/downloads/43/22/041-06734/tto8mjl3g17oebel0u9zt7duiubusd1r6t/BaseSystem.dmg
http://swcdn.apple.com/content/downloads/43/22/041-06734/tto8mjl3g17oebel0u9zt7duiubusd1r6t/AppleDiagnostics.chunklist
http://swcdn.apple.com/content/downloads/43/22/041-06734/tto8mjl3g17oebel0u9zt7duiubusd1r6t/AppleDiagnostics.dmg
http://swcdn.apple.com/content/downloads/43/22/041-06734/tto8mjl3g17oebel0u9zt7duiubusd1r6t/InstallInfo.plist
http://swcdn.apple.com/content/downloads/43/22/041-06734/tto8mjl3g17oebel0u9zt7duiubusd1r6t/InstallAssistantAuto.pkg

斜体的文件,可以不下载,在BaseSystem.dmg中也含有该安装助理(windows下无法解压pkg)。

然后打开BaseSystem.dmg(windows下可以用7-zip打开)

找到里面的Install  macOS  Mojave.app,将文件复制入/Install macOS Mojave.app/Contents/SharedSupport (目录不存在需要自己创建)

InstallESDDmg.pkg            -> SharedSupport/InstallESD.dmg
BaseSystem.chunklist         -> SharedSupport/BaseSystem.chunklist
BaseSystem.dmg               -> SharedSupport/BaseSystem.dmg
AppleDiagnostics.chunklist   -> SharedSupport/AppleDiagnostics.chunklist
AppleDiagnostics.dmg         -> SharedSupport/AppleDiagnostics.dmg
InstallInfo.plist            -> SharedSupport/InstallInfo.plist

如果还需要创建可引导的安装盘,主需要将Install  macOS  Mojave.app放入引导盘根目录,引导盘制作参考前面制作引导盘的文章

(windows下可以用FAT32制作引导分区,然后将安装包放入exFAT分区,用终端运行安装包,也可以用transMAC自己折腾)

参考:

https://github.com/Piker-Alpha/HandyScripts/blob/master/installScriptTemplate.sh

installScript_1014fullapp

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据