Class: Apex
- Inherits:
-
Formula
- Object
- Formula
- Apex
- Defined in:
- ext/apex_ext/apex_src/Formula/apex.rb
Overview
Homebrew formula for Apex To use this formula, create a tap:
brew tap ttscoff/thelab https://github.com/ttscoff/homebrew-thelab
Then install:
brew install apex
Instance Method Summary collapse
Instance Method Details
#install ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'ext/apex_ext/apex_src/Formula/apex.rb', line 20 def install bin.install "apex" # Fix libyaml path to point to Homebrew's libyaml # This handles both Apple Silicon (/opt/homebrew) and Intel (/usr/local) installations libyaml_path = "#{HOMEBREW_PREFIX}/lib/libyaml-0.2.dylib" if File.exist?(libyaml_path) system "install_name_tool", "-change", "/Users/runner/work/apex/apex/deps/libyaml-universal/lib/libyaml-0.2.dylib", libyaml_path, bin/"apex" end end |