-
Notifications
You must be signed in to change notification settings - Fork 0
Release v0.0.1 #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
class BinaryAnalyzer < Formula | ||
desc "Static analysis tool for mobile apps using the Airbridge SDK" | ||
homepage "https://www.airbridge.io/" | ||
homepage "https://sdk-internal.airbridge.io/binary-analyzer/latest/" | ||
|
||
version = "0.0.0" | ||
sha_macos_aarch64 = "72a0f59075c35eeaec705f192cb4abca6594231f01846e54aa5d970f0acb4498" | ||
sha_macos_x64 = "96f1293f5359c2f22e39107bcf4cf36f8811916f00ef90dcdf94f0f32c319406" | ||
binary_analyzer_version = "0.0.1" | ||
sha_macos_aarch64 = "0fa5eee9a44dfc6de144f975d333e96031b5d8d0fd9f0f23ca20966adc32ea1b" | ||
sha_macos_x64 = "1a4d2887934fddc0ffa7d01811dc52315f50bd7faaadce3bf146078fbdd9c262" | ||
# sha_linux_aarch64 = "" | ||
sha_linux_x64 = "e4fcb32135a385bb9483e045f5584b92d9c8dc5a7147a7f252197a839253218d" | ||
sha_linux_x64 = "59a937942c9c84edeedc8688b9f225ecb1a9f9a5b5d2560b37f714142f8e8118" | ||
|
||
on_macos do | ||
if Hardware::CPU.arm? | ||
url "https://sdk-internal.airbridge.io/binary-analyzer/#{version}/macos-aarch64/binary-analyzer.tar.gz" | ||
url "https://sdk-internal.airbridge.io/binary-analyzer/#{binary_analyzer_version}/macos-aarch64/binary-analyzer.tar.gz" | ||
sha256 sha_macos_aarch64 | ||
else | ||
url "https://sdk-internal.airbridge.io/binary-analyzer/#{version}/macos-x64/binary-analyzer.tar.gz" | ||
url "https://sdk-internal.airbridge.io/binary-analyzer/#{binary_analyzer_version}/macos-x64/binary-analyzer.tar.gz" | ||
sha256 sha_macos_x64 | ||
end | ||
end | ||
|
||
on_linux do | ||
# if Hardware::CPU.arm? && Hardware::CPU.is_64_bit? | ||
# url "https://sdk-internal.airbridge.io/binary-analyzer/#{version}/linux-aarch64/binary-analyzer.tar.gz" | ||
# url "https://sdk-internal.airbridge.io/binary-analyzer/#{binary_analyzer_version}/linux-aarch64/binary-analyzer.tar.gz" | ||
# sha256 sha_linux_aarch64 | ||
# end | ||
if Hardware::CPU.intel? | ||
url "https://sdk-internal.airbridge.io/binary-analyzer/#{version}/linux-x64/binary-analyzer.tar.gz" | ||
url "https://sdk-internal.airbridge.io/binary-analyzer/#{binary_analyzer_version}/linux-x64/binary-analyzer.tar.gz" | ||
sha256 sha_linux_x64 | ||
else | ||
version "0.0.0" | ||
version binary_analyzer_version | ||
# Dummy URL and SHA256 just to satisfy Homebrew audit for Linux ARM | ||
url "https://example.com/unsupported-linux-arm.tar.gz" | ||
sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" # SHA of empty file | ||
Comment on lines
+30
to
33
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
🤖 Prompt for AI Agents
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Homebrew DSL의
version
을 그대로 활용하면 중복 정의를 피할 수 있습니다binary_analyzer_version
변수를 따로 두면 값 변경 시 DSLversion
과 불일치할 여지가 생깁니다. 다음과 같이 상단에version "0.0.1"
한 줄만 선언하고 URL에는\#{version}
을 사용하면 DRY 원칙을 지킬 수 있습니다.그리고
같은 방식으로 모든 URL을 수정할 수 있습니다.
📝 Committable suggestion
🤖 Prompt for AI Agents