Skip to content

Commit

Permalink
fix bug for version
Browse files Browse the repository at this point in the history
  • Loading branch information
zetao-zhang-sophgo committed Sep 21, 2024
1 parent 90054b2 commit 95eeaca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/pqt_batch_deployment/linux_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ elif [[ $get_arch =~ "mips64" ]];then
else
echo "unknown!!"
fi
line=$(grep -E '^set\(MY_PROJECT_VERSION "[^"]+"\)' CMakeLists.txt)
version=$(echo "$line" | grep -o -E '[0-9]+\.[0-9]+\.[0-9]+')
echo "need build version: ${version}"
source_path=$(pwd)
rm output -rf
mkdir output
Expand Down Expand Up @@ -84,4 +87,4 @@ if [ $file_size_kb -gt $(( 23 * 1024 )) ]; then
else
echo "AppImage size ${file_size_kb}KiB error"
exit 1
fi
fi

0 comments on commit 95eeaca

Please sign in to comment.