未验证 提交 9ac76ad5 编写于 作者: N Nurhan Turgut 提交者: GitHub

[web] changing user limits for macos (#16797)

* changing user limits for macos

* check kernel name instead
上级 592b3ff2
......@@ -53,6 +53,14 @@ install_deps() {
(cd "$FLUTTER_DIR/web_sdk/web_engine_tester"; $PUB_PATH get)
}
KERNEL_NAME=`uname`
if [[ $KERNEL_NAME == *"Darwin"* ]]
then
echo "Running on MacOS. Increase the user limits"
ulimit -n 10000
ulimit -u 2048
fi
if [[ "$FELT_USE_SNAPSHOT" == "false" || "$FELT_USE_SNAPSHOT" == "0" ]]; then
echo "[Snapshot mode: off]"
# Running without snapshot means there is high likelyhood of local changes. In
......@@ -78,4 +86,3 @@ else
$DART_SDK_DIR/bin/dart --packages="$WEB_UI_DIR/.packages" "$SNAPSHOT_PATH" $@
fi
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册