28 lines
425 B
Bash
28 lines
425 B
Bash
|
|
||
|
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"
|
||
|
|
||
|
|