broadwaylamb / SwiftSnapshotDownloader

A simple command line tool that fetches the latest development snapshot of the Swift language and installs it on your Mac.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SwiftSnapshotDownloader

A simple command line tool that fetches the latest development snapshot of the Swift language and installs it on your Mac.

Installation

You can download a binary from here, or you can build the tool from source. Like this:

$ git clone https://github.com/broadwaylamb/SwiftSnapshotDownloader.git
$ cd SwiftSnapshotDownloader
$ swift build -c release -Xswiftc -static-stdlib
$ cd .build/release
$ cp -f SwiftSnapshotDownloader /usr/local/bin/ssd

What does it do?

The tool parses swift.org, finds the latest dev snapshot and downloads it to the current directory, then installs it (you may need the root access) and deletes the downloaded file.

If you run the tool with the --keep-downloaded-file option, the downloaded file will not be deleted after installation.

If at the moment of launching the tool a file with the same name as the lastest dev shapshot is present, no downloading will be performed, but that file will be used to install the new toolchain.

About

A simple command line tool that fetches the latest development snapshot of the Swift language and installs it on your Mac.


Languages

Language:Swift 97.7%Language:Makefile 2.3%