Add flutter.sh
Signed-off-by: AKU <tom@tdpain.net>
This commit is contained in:
parent
014f88710c
commit
1f89b19d4d
2 changed files with 26 additions and 0 deletions
|
@ -36,6 +36,7 @@ Markdown docs and shell scripts for automating installation of things and docume
|
|||
* [`clibraries.md`](clibraries.md) for errors like `fatal error: stdlib.h: No such file or directory`
|
||||
* [`docker.sh`](docker.sh) for installation of Docker on Linux Mint 20.01 or Ubuntu 20.04 LTS
|
||||
* [`docker-compose.sh`](docker-compose.sh) for installation of Docker Compose.
|
||||
* [`flutter.sh`](flutter.sh) for installing the Flutter app framework (doesn't touch Android Studio stuff, that needs doing manually)
|
||||
* [`gh.md`](gh.md) for installing the GitHub CLI
|
||||
* [`git.sh`](git.sh)
|
||||
* [`gitkraken.md`](gitkraken.md)
|
||||
|
|
25
flutter.sh
Executable file
25
flutter.sh
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
|
||||
DOWNLOAD_FILE="flutter.tar.xz"
|
||||
|
||||
wget -O $DOWNLOAD_FILE https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_2.5.3-stable.tar.xz
|
||||
|
||||
INSTALL_LOCATION="/home/akp"
|
||||
sudo mkdir -p $INSTALL_LOCATION
|
||||
|
||||
(cd $INSTALL_LOCATION; sudo tar xvf $DOWNLOAD_FILE)
|
||||
|
||||
echo "export PATH=\"\$PATH:$INSTALL_LOCATION/flutter/bin\"" >> ~/.bashrc
|
||||
source ~/.bashrc
|
||||
|
||||
echo "Checking path..."
|
||||
which flutter dart
|
||||
|
||||
echo "Downloading development dependencides..."
|
||||
flutter precache
|
||||
|
||||
echo "Running flutter doctor"
|
||||
flutter doctor
|
||||
|
||||
echo "Cleaning up"
|
||||
rm $DOWNLOAD_FILE
|
Loading…
Add table
Add a link
Reference in a new issue