From 6722362103550c51b7a8de3aa651bcdc001f0ec5 Mon Sep 17 00:00:00 2001 From: donny Date: Mon, 1 Nov 2021 07:41:18 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20'flutter-install.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flutter-install.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 flutter-install.sh 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