scirpt: build script.

This commit is contained in:
2025-07-06 13:04:05 +08:00
parent a65764dd5b
commit 3323755800
10 changed files with 64 additions and 110 deletions

View File

@@ -3,15 +3,17 @@ current_user=$(whoami)
qt_path="/home/${current_user}/Qt5.14.2/5.14.2/gcc_64"
if [ -d "$qt_path" ]; then
echo "Found Qt directory: $qt_path"
cmake -B../build -S../ -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$qt_path" -DQT_DEFAULT_MAJOR_VERSION=5 -DCOMPILE_GUI=ON
cmake --build ../build --config Release
cd ..
xmake f -a x64 -m release --qt="$qt_path" --gui=y --qt5=y -o build-linux -v
xmake
if [ $? -eq 0 ]; then
echo "cmake command executed successfully"
echo "xmake command executed successfully"
else
echo "cmake command failed"
echo "xmake command failed"
exit 1
fi
else