添加 'flutter-install.sh'

master
donny 2021-11-01 07:41:18 +00:00
parent 4f32c89991
commit 6722362103
1 changed files with 15 additions and 0 deletions

15
flutter-install.sh Normal file
View File

@ -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