mirror of
https://github.com/crystalidea/qt-build-tools.git
synced 2024-11-27 05:38:33 +08:00
28 lines
626 B
Bash
28 lines
626 B
Bash
|
#!/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 -static -release -ltcg -optimize-size -no-pch -opensource -confirm-license -nomake examples -nomake tests -no-openssl -securetransport -prefix /usr/local/Qt-5.15.8-static
|
||
|
|
||
|
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.8_mac_static.zip Qt-5.15.8-static/*
|