forked from yel-hadd/42-Flutter-Dart-SDK-Local-Install
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflutter_init.sh
20 lines (19 loc) · 1.31 KB
/
flutter_init.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# **************************************************************************** #
# #
# ::: :::::::: #
# flutter_init.sh :+: :+: :+: #
# +:+ +:+ +:+ #
# By: yel-hadd <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/11/29 18:58:43 by yel-hadd #+# #+# #
# Updated: 2022/11/29 18:58:49 by yel-hadd ### ########.fr #
# #
# **************************************************************************** #
username="yel-hadd"
rm -rf "/goinfre/$username/flutter"
mkdir -p "/goinfre/$username/flutter"
curl "https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_3.3.9-stable.zip" -o "/goinfre/$username/flutter.zip"
unzip "/goinfre/$username/flutter.zip" -d "/goinfre/$username/"
alias flutter='/goinfre/$username/flutter/bin/flutter'
alias dart='/goinfre/$username/flutter/bin/dart'
rm -f "/goinfre/$username/flutter.zip"