This commit adds a check for the availability of `brew bundle` in the `install_brew_deps.sh` script, ensuring that users are informed to update Homebrew if the command is missing. Additionally, the `macdeploycheck` formula is updated to correct the path for the script installation, aligning it with the tapped repository structure. These changes improve the robustness and user experience during the installation of Homebrew dependencies.
23 lines
652 B
Ruby
23 lines
652 B
Ruby
class Macdeploycheck < Formula
|
|
desc "Sanity checks a macOS .app bundle for accidental Homebrew runtime dependencies"
|
|
homepage "https://github.com/strawberrymusicplayer/strawberry"
|
|
version "0.1.0"
|
|
# Homebrew requires a URL stanza. Use the script shipped in this tap (file://),
|
|
# so installs always match the tapped revision.
|
|
url "file://#{File.expand_path("../dist/macos/macdeploycheck.sh", __dir__)}"
|
|
sha256 :no_check
|
|
license "MIT"
|
|
|
|
depends_on :macos
|
|
|
|
def install
|
|
bin.install "macdeploycheck.sh" => "macdeploycheck"
|
|
end
|
|
|
|
test do
|
|
# Basic smoke test: tool runs and prints usage.
|
|
system bin/"macdeploycheck"
|
|
end
|
|
end
|
|
|