15 lines
513 B
Bash
Executable File
15 lines
513 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
echo "installing dart SDK..."
|
|
sudo apt-get update
|
|
sudo apt-get install apt-transport-https
|
|
sudo sh -c 'wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
|
|
sudo sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
|
|
sudo apt-get update
|
|
sudo apt-get install dart=2.8.4-1
|
|
export PATH="$PATH:/usr/lib/dart/bin"
|
|
echo "done installing dart SDK"
|
|
sudo apt-get install -f
|