Skip to content

Commit

Permalink
fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Neutree committed Oct 18, 2024
1 parent 34aab51 commit 12cd2ad
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion maix/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

version_major = 4
version_minor = 7
version_patch = 0
version_patch = 1

__version__ = "{}.{}.{}".format(version_major, version_minor, version_patch)
28 changes: 16 additions & 12 deletions tools/os/gen_os.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,24 @@ skip_build_apps=0
board_name=maixcam

# 如果提供了第五个参数且不为空,则将 skip_build_apps 设置为 1
if [ "x$5" == "x1" ]; then
skip_build_apps=1
elif [ "x$5" != "x0" ]; then
echo "skip_build_apps arg should be 0 or 1"
exit 1
if [ "x$5" != "x1" ]; then
if [ "x$5" == "x1" ]; then
skip_build_apps=1
elif [ "x$5" != "x0" ]; then
echo "skip_build_apps arg should be 0 or 1"
exit 1
fi
fi

if [ "x$6" == "xmaixcam" ]; then
board_name=maixcam
elif [ "x$6" == "xmaixcam-pro" ]; then
board_name=maixcam-pro
else
echo "board_name arg should be maixcam or maixcam-pro"
exit 1
if [ "x$6" != "x" ]; then
if [ "x$6" == "xmaixcam" ]; then
board_name=maixcam
elif [ "x$6" == "xmaixcam-pro" ]; then
board_name=maixcam-pro
else
echo "board_name arg should be maixcam or maixcam-pro"
exit 1
fi
fi


Expand Down

0 comments on commit 12cd2ad

Please sign in to comment.