diff --git a/flutter-install.sh b/flutter-install.sh new file mode 100644 index 0000000..ff1f79c --- /dev/null +++ b/flutter-install.sh @@ -0,0 +1,15 @@ +#!/bin/sh +set -e + +yum install -y git + +echo "Flutter Install..." + +cd /usr/local && git clone https://github.com/flutter/flutter.git -b stable + +echo export FLUTTER_HOME=/usr/local/flutter>>/etc/profile +echo export PUB_HOSTED_URL=https://pub.flutter-io.cn>>/etc/profile +echo export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn>>/etc/profile + +echo export PATH=$FLUTTER_HOME:$PATH>>/etc/profile +source /etc/profile