Skip to content

Commit

Permalink
[ObjC] fix protoc link in !ProtoCompiler.podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
HannahShiSFB committed Jan 2, 2025
1 parent f39cd0f commit 9b3bb79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/objective-c/!ProtoCompiler.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ Pod::Spec.new do |s|
s.authors = { 'The Protocol Buffers contributors' => '[email protected]' }

repo = 'google/protobuf'
file = "protoc-#{v}-osx-x86_64.zip"
file = "protoc-#{v.delete_prefix("3.")}-osx-universal_binary.zip"
s.source = {
:http => "https://github.com/#{repo}/releases/download/v#{v}/#{file}",
:http => "https://github.com/#{repo}/releases/download/v#{v.delete_prefix("3.")}/#{file}",
# TODO(jcanizales): Add sha1 or sha256
# :sha1 => '??',
}
Expand Down
4 changes: 2 additions & 2 deletions templates/src/objective-c/!ProtoCompiler.podspec.template
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@
s.authors = { 'The Protocol Buffers contributors' => '[email protected]' }

repo = 'google/protobuf'
file = "protoc-#{v}-osx-x86_64.zip"
file = "protoc-#{v.delete_prefix("3.")}-osx-universal_binary.zip"
s.source = {
:http => "https://github.com/#{repo}/releases/download/v#{v}/#{file}",
:http => "https://github.com/#{repo}/releases/download/v#{v.delete_prefix("3.")}/#{file}",
# TODO(jcanizales): Add sha1 or sha256
# :sha1 => '??',
}
Expand Down

0 comments on commit 9b3bb79

Please sign in to comment.