mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Change release archive check to warning (#57688)
This commit is contained in:
parent
d9adfe3f7e
commit
43f18f36ef
@ -87,17 +87,10 @@ BuildApp() {
|
|||||||
exit -1;;
|
exit -1;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Archive builds (ACTION=install) should always run in release mode.
|
# Warn the user if not archiving (ACTION=install) in release mode.
|
||||||
if [[ "$ACTION" == "install" && "$build_mode" != "release" ]]; then
|
if [[ "$ACTION" == "install" && "$build_mode" != "release" ]]; then
|
||||||
EchoError "========================================================================"
|
echo "warning: Flutter archive not built in Release mode. Ensure FLUTTER_BUILD_MODE \
|
||||||
EchoError "ERROR: Flutter archive builds must be run in Release mode."
|
is set to release or run \"flutter build ios --release\", then re-run Archive from Xcode."
|
||||||
EchoError ""
|
|
||||||
EchoError "To correct, ensure FLUTTER_BUILD_MODE is set to release or run:"
|
|
||||||
EchoError "flutter build ios --release"
|
|
||||||
EchoError ""
|
|
||||||
EchoError "then re-run Archive from Xcode."
|
|
||||||
EchoError "========================================================================"
|
|
||||||
exit -1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local framework_path="${FLUTTER_ROOT}/bin/cache/artifacts/engine/${artifact_variant}"
|
local framework_path="${FLUTTER_ROOT}/bin/cache/artifacts/engine/${artifact_variant}"
|
||||||
|
Loading…
Reference in New Issue
Block a user