Skip to content

Commit

Permalink
Check for a universal binary
Browse files Browse the repository at this point in the history
  • Loading branch information
kainjow committed Feb 20, 2021
1 parent 98cacfd commit 2bca059
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,12 @@ APP="Semulov"
rm -rf Dependencies "${BUILD_DIR}"
xcodebuild -scheme "Semulov Release" "SYMROOT=${BUILD_DIR}"
pushd "${RELEASE_DIR}"

EXE=${APP}.app/Contents/MacOS/${APP}
if [[ "$(lipo -info ${EXE})" != *"x86_64 arm64"* ]]; then
echo "A universal build must be created. Use Xcode 12.2 or greater."
exit 1
fi

zip -ry "${APP}.zip" "${APP}.app"
popd

0 comments on commit 2bca059

Please sign in to comment.