Last active
December 19, 2022 12:14
-
-
Save grafst/d18238d46370886ed80a5efa3a761f44 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "~~~ install dart ~~~" | |
if [ $(which dart) ]; then | |
echo "dart already installed" | |
else | |
dart_dir="/opt/dart" | |
sudo mkdir $dart_dir | |
sudo chmod 0755 $dart_dir #users dont need to write | |
wget https://storage.googleapis.com/dart-archive/channels/stable/release/latest/sdk/dartsdk-linux-arm64-release.zip --output-document=/tmp/dartsdk-linux-arm64-release.zip | |
sudo unzip /tmp/dartsdk-linux-arm64-release.zip -d $dart_dir | |
sudo ln -s $dart_dir/dart-sdk/bin/dartaotruntime /usr/bin/dartaotruntime | |
sudo ln -s $dart_dir/dart-sdk/bin/dart /usr/bin/dart | |
rm /tmp/dartsdk-linux-arm64-release.zip # clean up | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment