Skip to content

Commit

Permalink
Updating podspec to install cli from tar.gz
Browse files Browse the repository at this point in the history
  • Loading branch information
BobaFetters committed Jul 7, 2023
1 parent 55b4c4d commit 553ec96
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Apollo.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ Pod::Spec.new do |s|
cli_binary_name = 'apollo-ios-cli'
s.preserve_paths = [cli_binary_name]
s.prepare_command = <<-CMD
make clean build-cli-for-cocoapods
cp .build/release/#{cli_binary_name} #{cli_binary_name}
chmod +x #{cli_binary_name}
make unpack-cli
CMD

s.subspec 'Core' do |ss|
Expand Down
Binary file modified CLI/apollo-ios-cli.tar.gz
Binary file not shown.
5 changes: 5 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
default: unpack-cli

unpack-cli:
(cd CLI && tar -xvf apollo-ios-cli.tar.gz -C ../)
chmod +x apollo-ios-cli

0 comments on commit 553ec96

Please sign in to comment.