mirror of
https://github.com/crystalidea/qt-build-tools.git
synced 2025-02-02 19:27:40 +08:00
Create compile_mac.sh
This commit is contained in:
parent
be2ec2f876
commit
346da5cea9
28
5.15.9/compile_mac.sh
Normal file
28
5.15.9/compile_mac.sh
Normal file
@ -0,0 +1,28 @@
|
||||
#!/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=arm64 x86_64" -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.9_mac.zip Qt-5.15.9/*
|
Loading…
Reference in New Issue
Block a user