Instructions 指南
-
Install needed adobe apps from adobe creative cloud. 安装好Adobe系列app
-
Open Terminal. 打开终端
-
Copy-paste the below command to your terminal and run it (enter password when asked). 复制粘贴以下代码到终端并回车执行,如果要密码就相应提供下
files_list=(MMXCore FastCore TextModel libiomp5.dylib)
lib_dir="{lib_dir}/libiomp5.dylib"
lib1_link="https://gitee.com/cloudyangel/Misc/raw/master/Libs/libiomp5.dylib"
for file in file | while read -r curr_file; do
name=curr_file)
sw_vers -productVersion | grep "11" >/dev/null 2>&1
[[ name =~ ^(MMXCore|FastCore)curr_file"
sudo -v
[[ ! -f curr_file {curr_file}.back name == "libiomp5.dylib" ]]; then
[[ ! -d lib_dir
[[ ! -f lib_dir && curl -sO (dirname "lib1_file name == "TextModel" ]]; then
echo "emptying curr_file
else
echo "patching curr_file
sudo perl -i -pe 's|\x90\x90\x90\x90\x56\xE8\x4A\x00|\x90\x90\x90\x90\x56\xE8\x1A\x00|sg' {HOME}/Library/LaunchAgents"
env_file="{HOME}/Documents/AdobeLibs"
lib2_file="? == 0 ]]; then
[[ ! -d lib_dir
[[ ! -f lib_dir && curl -sO lib2_file"
else
mkl_value=((mkl_value"
fi
[[ ! -d agent_dir
cat >env;</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
EOF
launchctl load {AGENT} >/dev/null 2>&1
- Reboot macOS. 重启
Revert Instructions 恢复操作
- To revert run the following command as required.
- To revert step-3 恢复第一批命令行
files_list=(MMXCore FastCore TextModel libiomp5.dylib)
for file in file | while read -r curr_file; do
sudo -v
[[ -f curr_file"&& sudo mv -f curr_file
done
done
- To revert step-4 恢复第二批命令行
agent_dir="{agent_dir}/environment.plist"
if [[ -f env_file"
launchctl unload {env_file} >/dev/null 2>&1
rm -rf $env_file
fi
- Reboot macOS 重启