Skip to content

Commit

Permalink
use single bottle
Browse files Browse the repository at this point in the history
  • Loading branch information
phantomato committed Jun 18, 2024
1 parent fdbd8c6 commit 2637548
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions Formula/xcodes.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
class Xcodes < Formula
desc "The best command-line tool to install and switch Xcodes."

Check failure on line 2 in Formula/xcodes.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

FormulaAudit/Desc: Description shouldn't start with an article.

Check failure on line 2 in Formula/xcodes.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

FormulaAudit/Desc: Description shouldn't end with a full stop.
homepage ""

Check failure on line 3 in Formula/xcodes.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

FormulaAudit/Homepage: Formula should have a homepage.

Check failure on line 3 in Formula/xcodes.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

FormulaAudit/Homepage: The homepage should start with http or https.
url "https://github.com/phantomato/xcodes.git", tag: "1.4.2"
url "https://github.com/phantomato/xcodes/releases/download/1.4.2/xcodes.zip"
sha256 "df1ae28c1fee678e8d07afe852b5f869097a2c49bf7b0508be19d1aa6bec46cb"
license "MIT"
head "https://github.com/phantomato/xcodes.git", branch: "main"

bottle do
root_url "https://github.com/phantomato/xcodes/releases/download/1.4.2"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "244acd990847401e65286daa3ff5abb16684625b373bfb9bf0dd755118b209df"
sha256 cellar: :any_skip_relocation, arm64_mojave: "244acd990847401e65286daa3ff5abb16684625b373bfb9bf0dd755118b209df"
sha256 cellar: :any_skip_relocation, mojave: "244acd990847401e65286daa3ff5abb16684625b373bfb9bf0dd755118b209df"
end
depends_on :macos

def install
system "make", "install", "prefix=#{prefix}"
build.head? ? system("make", "install", "prefix=#{prefix}") : bin.install("xcodes")
end

test do
Expand Down

0 comments on commit 2637548

Please sign in to comment.