NEW: release DJI Payload-SDK version 3.13.1
Signed-off-by: DJI <dev@dji.com>
This commit is contained in:
22
tools/build_dpk/build_dpk.sh
Normal file → Executable file
22
tools/build_dpk/build_dpk.sh
Normal file → Executable file
@ -89,6 +89,13 @@ if [ $(printf "%s" "$id" | wc -c) -gt 16 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$id" == "null" ]; then
|
||||
echo "Error, user_app_id field not comply with the specification, it should be the app id generated by the developer website's user center"
|
||||
echo "Please check app.json"
|
||||
echo "Document Specification: samples/sample_c/platform/linux/manifold3/app_json/README.md"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# prase and check version field
|
||||
version_regex='^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$'
|
||||
version=$(python3 -c "import json; print(json.load(open('$input_json_file'))['firmware_version'])")
|
||||
@ -145,6 +152,11 @@ elif [ $(printf "%s" "$name_en" | wc -c) -gt 32 ]; then
|
||||
echo "Please check app.json"
|
||||
echo "Document Specification: samples/sample_c/platform/linux/manifold3/app_json/README.md"
|
||||
exit 1
|
||||
elif [ "$name_en" == "null" ]; then
|
||||
echo "Error, name_en field cannot be 'null'"
|
||||
echo "Please check app.json"
|
||||
echo "Document Specification: samples/sample_c/platform/linux/manifold3/app_json/README.md"
|
||||
exit 1
|
||||
elif [[ ! $name_en =~ $regex ]]; then
|
||||
echo "Error, name_en field not comply with the specification"
|
||||
echo "Please check app.json"
|
||||
@ -215,6 +227,11 @@ if [ "$desc_en" == "" ]; then
|
||||
echo "Please check app.json"
|
||||
echo "Document Specification: samples/sample_c/platform/linux/manifold3/app_json/README.md"
|
||||
exit 1
|
||||
elif [ "$desc_en" == "null" ]; then
|
||||
echo "Error, description_en field cannot be 'null'"
|
||||
echo "Please check app.json"
|
||||
echo "Document Specification: samples/sample_c/platform/linux/manifold3/app_json/README.md"
|
||||
exit 1
|
||||
elif [ $(printf "%s" "$desc_en" | wc -c) -gt 367 ]; then
|
||||
echo "Error, desc_en field byte count:$(printf "%s" "$desc_en" | wc -c) over 367"
|
||||
echo "Please check app.json"
|
||||
@ -285,6 +302,11 @@ if [ "$maintainer_en" == "" ]; then
|
||||
echo "Please check app.json"
|
||||
echo "Document Specification: samples/sample_c/platform/linux/manifold3/app_json/README.md"
|
||||
exit 1
|
||||
elif [ "$maintainer_en" == "null" ]; then
|
||||
echo "Error, maintainer_en field cannot be 'null'"
|
||||
echo "Please check app.json"
|
||||
echo "Document Specification: samples/sample_c/platform/linux/manifold3/app_json/README.md"
|
||||
exit 1
|
||||
elif [ $(printf "%s" "$maintainer_en" | wc -c) -gt 127 ]; then
|
||||
echo "Error, maintainer_en field byte count:$(printf "%s" "$maintainer_en" | wc -c) over 127"
|
||||
echo "Please check app.json"
|
||||
|
||||
Reference in New Issue
Block a user