COMPASSi/trunk/code/arm_linux_build_relese.sh

28 lines
425 B
Bash
Raw Normal View History

2025-06-25 15:06:42 +08:00
rm -r build
TARGET_DIR="./build"
mkdir -p "$TARGET_DIR"
cd build
cmake -DCMAKE_BUILD_TYPE=Release cmake ..
make -j9
if [ $? -ne 0 ]; then
echo "Make failed, stopping execution."
exit 1
fi
cd ..
cd arm_linux_bin
linuxdeployqt ./Release/COMPASSi -appimage
current_time=$(date +"%Y-%m-%d_%H-%M-%S")
output_file="COMPASSi_${current_time}.tar.gz"
tar -czvf "$output_file" ./Release
echo "打包完成: $output_file"