在MacOS上加速Minecraft Launcher
状况
周末小朋友在家玩Minecraft,可能是近期网络环境有什么变动。官方启动器下载更新文件特别的慢。十分钟进度条才动了一小格子。
看着进度条好久也不更新,小朋友渐渐地就变得烦躁起来。
我把梯子开了全局代理,重新启动了Minecraft客户端,但貌似没效果。流量压根不从梯子走。
后来自己折腾了一下,找到了一个方法,记录如下:
方法步骤
从App中点开Minecraft,然后开启Terminal,找到启动器的进程信息
12345$ ps -ef | grep -i minecraft501 11957 1 0 3:45PM ?? 0:00.21 /Applications/Minecraft.app/Contents/MacOS/launcher501 11959 11957 0 3:45PM ?? 0:01.98 /Applications/Minecraft.app/Contents/Minecraft Updater.app/Contents/MacOS/nativeUpdater --nativePath /Applications/Minecraft.app --nativeStartupPath /Applications/Minecraft.app/Contents --nativeExecutable /Applicati ons/Minecraft.app/Contents/MacOS/launcher501 12917 12152 0 3:46PM ttys014 0:00.00 ggrep -i minecraft$在Terminal中启动HTTP proxy(我本地翻墙的proxy端口绑定的是8001端口,可根据实际情况进行修改。)
1$ export http_proxy="http://127.0.0.1:8001"; export HTTP_PROXY="http://127.0.0.1:8001"; export https_proxy="http://127.0.0.1:8001"; export HTTPS_PROXY="http://127.0.0.1:8001"关闭GUI的启动器界面, 然后手动在Terminal中启动Launcher
123456$ /Applications/Minecraft.app/Contents/MacOS/launcher2020-05-30 15:48:55.733 launcher[14037:45644] Claimed it found a path: /Applications/Minecraft.app/Contents/MacOS/launcher (/Applications/Minecraft.app/Contents/MacOS/launcher) 4096https://launchermeta.mojang.com/v1/products/launcher/022631aeac4a9addbce8e0503dce662152dc398d/mac-os.json2020-05-30 15:48:58.496 nativeUpdater[14040:45717] Found executable path: /Applications/Minecraft.app/Contents/MacOS/launcher2020-05-30 15:48:58.506 nativeUpdater[14040:45717] Found executable path: /Applications/Minecraft.app/Contents/MacOS/launcherhttps://launchermeta.mojang.com/v1/products/launcher/022631aeac4a9addbce8e0503dce662152dc398d/mac-os.json此时,也会启动GUI画面的启动器,但是下载文件时,启动器就会走proxy了。