Skip to content

Commit

Permalink
add gatekeeper validity
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhizhou committed Aug 31, 2024
1 parent c196c31 commit 823e7fd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion client/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ if [ $? -ne 0 ]; then
exit -6
fi

# Gatekeeper validity
spctl -a -t exec -vv $export_app
if [ $? -ne 0 ]; then
echo gatekeeper validity failed!
exit -7
fi

# delete export app zip file
if [ -f $export_app_zip ]; then
rm -f $export_app_zip
Expand Down Expand Up @@ -152,7 +159,7 @@ app_dist_tar_xz="${product_dir}/${scheme}_${short_version}_${version}_${date}.ta
tar -C $export_path -cJf $app_dist_tar_xz $(basename $export_app)
if [ $? -ne 0 ]; then
echo create tar.xz with staple ticket failed!
exit -7
exit -8
fi

echo tar.xz file for distribution of app: $app_dist_tar_xz
Expand Down

0 comments on commit 823e7fd

Please sign in to comment.