ccc-tnt-psd2ui/npm-packages/install_depends.sh

13 lines
308 B
Bash
Raw Permalink Normal View History

2023-07-24 03:13:08 +00:00
#!/bin/bash
# 安装必要的包
brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman
if [ $? -eq 0 ]; then
ln -s /opt/homebrew/Cellar/jpeg/9e/lib/libjpeg.9.dylib /opt/homebrew/opt/jpeg-turbo/lib/libjpeg.8.dylib
else
echo "Failed to install some packages, exiting."
exit 1
fi