mirror of
https://github.com/mas-cli/mas
synced 2024-11-25 04:50:24 +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]
|
depends_on :xcode => ["10.0", :build]
|
||||||
|
|
||||||
def install
|
def install
|
||||||
# Prevent warnings from causing build failures
|
# Working around build issues in dependencies
|
||||||
# Prevent linker errors by telling all lib builds to use max size install names
|
# - 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 = buildpath/"Overrides.xcconfig"
|
||||||
xcconfig.write <<~EOS
|
xcconfig.write <<~EOS
|
||||||
GCC_TREAT_WARNINGS_AS_ERRORS = NO
|
GCC_TREAT_WARNINGS_AS_ERRORS = NO
|
||||||
|
@ -31,14 +32,6 @@ class Mas < Formula
|
||||||
ENV["XCODE_XCCONFIG_FILE"] = xcconfig
|
ENV["XCODE_XCCONFIG_FILE"] = xcconfig
|
||||||
|
|
||||||
system "carthage", "bootstrap", "--platform", "macOS"
|
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
|
system "script/install", prefix
|
||||||
|
|
||||||
bash_completion.install "contrib/completion/mas-completion.bash" => "mas"
|
bash_completion.install "contrib/completion/mas-completion.bash" => "mas"
|
||||||
|
|
|
@ -16,8 +16,9 @@ class Mas < Formula
|
||||||
depends_on :xcode => ["10.0", :build]
|
depends_on :xcode => ["10.0", :build]
|
||||||
|
|
||||||
def install
|
def install
|
||||||
# Prevent warnings from causing build failures
|
# Working around build issues in dependencies
|
||||||
# Prevent linker errors by telling all lib builds to use max size install names
|
# - 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 = buildpath/"Overrides.xcconfig"
|
||||||
xcconfig.write <<~EOS
|
xcconfig.write <<~EOS
|
||||||
GCC_TREAT_WARNINGS_AS_ERRORS = NO
|
GCC_TREAT_WARNINGS_AS_ERRORS = NO
|
||||||
|
@ -26,14 +27,6 @@ class Mas < Formula
|
||||||
ENV["XCODE_XCCONFIG_FILE"] = xcconfig
|
ENV["XCODE_XCCONFIG_FILE"] = xcconfig
|
||||||
|
|
||||||
system "carthage", "bootstrap", "--platform", "macOS"
|
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
|
system "script/install", prefix
|
||||||
|
|
||||||
bash_completion.install "contrib/completion/mas-completion.bash" => "mas"
|
bash_completion.install "contrib/completion/mas-completion.bash" => "mas"
|
||||||
|
|
Loading…
Reference in a new issue