qt-build-tools/5.15.11/compile_mac.sh

28 lines
572 B
Bash
Raw Normal View History

2022-11-26 01:31:01 +08:00
#!/bin/bash
if [ -z "$1" ]; then echo "Please specify the admin pass as first argument"; exit 1; fi
makej () {
make -j$(sysctl -n hw.ncpu)
}
export PATH=$PATH:$(pwd)/qtbase/bin
cd qtbase
./configure QMAKE_APPLE_DEVICE_ARCHS="x86_64 arm64" -opensource -confirm-license -nomake examples -nomake tests -no-openssl -securetransport
makej
echo $1 | sudo -S sudo make install
cd ../qttools
qmake
makej
echo $1 | sudo -S sudo make install
cd ../qtmacextras
qmake
makej
echo $1 | sudo -S sudo make install
cd /usr/local
zip -r ~/Desktop/qt5.15.11_mac.zip Qt-5.15.11/*