Created
December 31, 2019 23:24
-
-
Save nanoxd/0befa1cba8a507807fe85803f919d598 to your computer and use it in GitHub Desktop.
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
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