diff --git a/dist.sh b/dist.sh index 92af717..eff181e 100755 --- a/dist.sh +++ b/dist.sh @@ -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