Skip to content

Instantly share code, notes, and snippets.

@nanoxd
Created December 31, 2019 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanoxd/0befa1cba8a507807fe85803f919d598 to your computer and use it in GitHub Desktop.
Save nanoxd/0befa1cba8a507807fe85803f919d598 to your computer and use it in GitHub Desktop.
class SpmPlayground < Formula
desc "Command line tool to create an Xcode project with a Playground and an SPM library ready for use in it"
homepage "https://github.com/finestructure/SPMPlayground"
url "https://github.com/finestructure/SPMPlayground/archive/0.4.0.tar.gz"
sha256 "774868a14a8bc5f5002979613543463fee7f381b7349b865e956a1a44fbf3940"
version '0.4.0'
depends_on :xcode => ["11.0", :build, :test]
def install
system 'swift', 'build', "--disable-sandbox", '-c', 'release'
bin.install '.build/release/spm-playground'
end
test do
system "#{bin}/spm-playground --version"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment