mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-27 02:04:33 +00:00
fix staticBuild (check buildet data)
This commit is contained in:
parent
fe0d7a4306
commit
e49b34f8a9
34
snapBuild.sh
Executable file
34
snapBuild.sh
Executable file
@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
|
||||
declare -a QTLIBS
|
||||
|
||||
BASE_DIR=$(dirname $0)
|
||||
QTLIBS=( libQt5Sql.a libQt5Xml.a libQt5Core.a libQt5Test.a libqtpcre2.a libQt5Network.a libQt5Bootstrap.a libQt5Concurrent.a)
|
||||
|
||||
cd qtBase
|
||||
|
||||
for var in "${QTLIBS[@]}"
|
||||
do
|
||||
if [ -e "$BASE_DIR/lib/$var" ]
|
||||
then
|
||||
echo "$var - ok"
|
||||
else
|
||||
echo "$var - not exits!. rebuild qt ..."
|
||||
|
||||
git clean -xfd
|
||||
|
||||
./configure -confirm-license -release -optimize-size -static -no-opengl -no-openssl -opensource -nomake tests -nomake examples -no-gui -no-widgets -no-dbus -no-accessibility
|
||||
|
||||
make -j$(nproc)
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
cd ..
|
||||
export PATH=$PATH:/qtBase
|
||||
|
||||
./qtBase/bin/qmake CQtDeployer.pro
|
||||
|
||||
make -j$(nproc)
|
||||
|
||||
strip build/*
|
@ -1,11 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
declare -a QTLIBS
|
||||
|
||||
BASE_DIR=$(dirname $0)
|
||||
QTLIBS=( libQt5Sql.a libQt5Xml.a libQt5Core.a libQt5Test.a libqtpcre2.a libQt5Network.a libQt5Bootstrap.a libQt5Concurrent.a)
|
||||
|
||||
cd qtBase
|
||||
git clean -xfd
|
||||
|
||||
./configure -confirm-license -release -optimize-size -static -no-opengl -no-openssl -opensource -nomake tests -nomake examples -no-gui -no-widgets -no-dbus -no-accessibility
|
||||
for var in "${QTLIBS[@]}"
|
||||
do
|
||||
if [ -e "$BASE_DIR/lib/$var" ]
|
||||
then
|
||||
echo "$var - ok"
|
||||
else
|
||||
echo "$var - not exits!. rebuild qt ..."
|
||||
|
||||
make -j$(nproc)
|
||||
git clean -xfd
|
||||
|
||||
./configure -confirm-license -release -optimize-size -static -no-opengl -no-openssl -opensource -nomake tests -nomake examples -no-gui -no-widgets -no-dbus -no-accessibility
|
||||
|
||||
make -j$(nproc)
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
cd ..
|
||||
export PATH=$PATH:/qtBase
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user