formula_creator.rb: add bundle install and additional dependency comment

This commit is contained in:
BingoKingo 2025-01-30 18:22:22 +08:00 committed by GitHub
parent c49cdc260c
commit cff9a565b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -202,11 +202,14 @@ module Homebrew
<% elsif @mode == :ruby %>
ENV["GEM_HOME"] = libexec
# Additional dependency from gem
# resources.each do |r|
# system "gem", "install", r.cached_download, "--ignore-dependencies",
# "--no-document", "--install-dir", libexec
# end
system "bundle", "config", "set", "without", "development", "test"
system "bundle", "install"
system "gem", "build", "\#{name}.gemspec"
system "gem", "install", "\#{name}-\#{version}.gem"
bin.install libexec/"bin/\#{name}"