Skip to content

Adding Homebrew Formula #27

@qeude

Description

@qeude

Hi John,

Thanks for this awesome tool ! Would love to be able to install it throught the brew command.
Any chance that you would either create a tap Formula or adding it to homebrew-core ?

The playground.rb would look similar to the following considering you would create a release.

class Playground < Formula
  desc "Instantly create Swift playgrounds from the command line"
  homepage "https://github.com/JohnSundell/Playground"
  url "https://github.com/JohnSundell/Playground/archive/refs/tags/1.0.0.tar.gz"
  sha256 "<SHOULD ADD THE RIGHT SHA256 HERE>"
  license "MIT"


  def install
    system "swift", "build",
        "--configuration", "release",
        "--disable-sandbox"    
        
    bin.install '.build/release/Playground'
  end

  test do
    system "#{bin}/playground"
  end
end

The formula could also be updated using a Github Actions or so for each release 🤷🏼‍♂️
In case that you want to do a Tap Formula, you might be the only one being able to create it. And if you want to add it to homebrew-core, you can just create the release then I can create the pull request with to file above :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions