mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +00:00
🍺 Use install script in Homebrew formula
Instead of redundant xcodebuild install commands
This commit is contained in:
parent
d583e74951
commit
bf322c6dee
2 changed files with 6 additions and 20 deletions
|
@ -21,8 +21,9 @@ class Mas < Formula
|
|||
depends_on :xcode => ["10.0", :build]
|
||||
|
||||
def install
|
||||
# Prevent warnings from causing build failures
|
||||
# Prevent linker errors by telling all lib builds to use max size install names
|
||||
# Working around build issues in dependencies
|
||||
# - Prevent warnings from causing build failures
|
||||
# - Prevent linker errors by telling all lib builds to use max size install names
|
||||
xcconfig = buildpath/"Overrides.xcconfig"
|
||||
xcconfig.write <<~EOS
|
||||
GCC_TREAT_WARNINGS_AS_ERRORS = NO
|
||||
|
@ -31,14 +32,6 @@ class Mas < Formula
|
|||
ENV["XCODE_XCCONFIG_FILE"] = xcconfig
|
||||
|
||||
system "carthage", "bootstrap", "--platform", "macOS"
|
||||
|
||||
xcodebuild "install",
|
||||
"-project", "mas-cli.xcodeproj",
|
||||
"-scheme", "mas-cli Release",
|
||||
"-configuration", "Release",
|
||||
"OBJROOT=build",
|
||||
"SYMROOT=build"
|
||||
|
||||
system "script/install", prefix
|
||||
|
||||
bash_completion.install "contrib/completion/mas-completion.bash" => "mas"
|
||||
|
|
|
@ -16,8 +16,9 @@ class Mas < Formula
|
|||
depends_on :xcode => ["10.0", :build]
|
||||
|
||||
def install
|
||||
# Prevent warnings from causing build failures
|
||||
# Prevent linker errors by telling all lib builds to use max size install names
|
||||
# Working around build issues in dependencies
|
||||
# - Prevent warnings from causing build failures
|
||||
# - Prevent linker errors by telling all lib builds to use max size install names
|
||||
xcconfig = buildpath/"Overrides.xcconfig"
|
||||
xcconfig.write <<~EOS
|
||||
GCC_TREAT_WARNINGS_AS_ERRORS = NO
|
||||
|
@ -26,14 +27,6 @@ class Mas < Formula
|
|||
ENV["XCODE_XCCONFIG_FILE"] = xcconfig
|
||||
|
||||
system "carthage", "bootstrap", "--platform", "macOS"
|
||||
|
||||
xcodebuild "install",
|
||||
"-project", "mas-cli.xcodeproj",
|
||||
"-scheme", "mas-cli Release",
|
||||
"-configuration", "Release",
|
||||
"OBJROOT=build",
|
||||
"SYMROOT=build"
|
||||
|
||||
system "script/install", prefix
|
||||
|
||||
bash_completion.install "contrib/completion/mas-completion.bash" => "mas"
|
||||
|
|
Loading…
Reference in a new issue