添加 'flutter-install.sh'
parent
4f32c89991
commit
6722362103
|
|
@ -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
|
||||
Loading…
Reference in New Issue