Last active
October 2, 2017 09:51
-
-
Save MichalPekala/dbc06a380bcda8c59799 to your computer and use it in GitHub Desktop.
Swift install script
This file contains hidden or 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
#!/bin/bash | |
sudo apt-get install clang libicu-dev | |
SWIFT_VERSION="4.0-RELEASE" | |
SWIFT_PLATFORM="ubuntu16.04" | |
wget https://swift.org/builds/swift-$(echo "$SWIFT_VERSION" | tr '[:upper:]' '[:lower:]' )/$(echo "$SWIFT_PLATFORM" | tr -d .)/swift-$SWIFT_VERSION/swift-$SWIFT_VERSION-$SWIFT_PLATFORM.tar.gz | |
wget https://swift.org/builds/swift-$(echo "$SWIFT_VERSION" | tr '[:upper:]' '[:lower:]' )/$(echo "$SWIFT_PLATFORM" | tr -d .)/swift-$SWIFT_VERSION/swift-$SWIFT_VERSION-$SWIFT_PLATFORM.tar.gz.sig | |
wget -q -O - https://swift.org/keys/all-keys.asc | gpg --import - | |
gpg --keyserver hkp://pool.sks-keyservers.net --refresh-keys Swift | |
gpg --verify swift-$SWIFT_VERSION-$SWIFT_PLATFORM.tar.gz.sig | |
sudo tar xvzf swift-$SWIFT_VERSION-$SWIFT_PLATFORM.tar.gz --directory / --strip-components=1 | |
export PATH=/usr/bin:"${PATH}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment