Skip to content

Commit

Permalink
Use xcrun and bin.install
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Oct 14, 2023
1 parent e94f51b commit 8fc0fb7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Forumla/xclint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ class Xclint < Formula
head "https://github.com/mattmassicotte/XCLint", branch: "main"
version "0.1.0"

depends_on :xcode => ["14.0", :build]
depends_on :xcode => ["15.0", :build]

def install
system "swift", "build", "-c", "release", "--disable-sandbox"
system "install", "-d", "#{prefix}/bin"
system "install", ".build/release/xclint", "#{prefix}/bin"
system "xcrun", "swift", "build", "-c", "release", "--disable-sandbox"
bin.install ".build/release/xclint"
end
end

0 comments on commit 8fc0fb7

Please sign in to comment.