Merge pull request #581 from rgoldberg/580-bootstrap

Improve `bootstrap`.
This commit is contained in:
Ross Goldberg 2024-10-17 21:44:06 -04:00 committed by GitHub
commit 916718b415
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 17 deletions

View file

@ -9,4 +9,6 @@ brew "trash"
# brew "swiftlint"
tap "peripheryapp/periphery"
cask "periphery"
if OS.mac? && MacOS.version >= :ventura
cask "periphery"
end

View file

@ -13,22 +13,15 @@ if ! cd -- "${mas_dir}"; then
exit 1
fi
main() {
script/clean
script/clean
printf $'==> 👢 Bootstrapping\n'
printf $'==> 👢 Bootstrapping (%s)\n' "$(script/version)"
# Install Homebrew tools
rm -f Brewfile.lock.json
brew bundle install --no-upgrade --verbose
# Install Homebrew tools
rm -f Brewfile.lock.json
brew bundle install --no-upgrade --verbose
# Already installed on GitHub Actions runner.
if [[ ! -x "$(command -v swiftlint)" ]]; then
brew install swiftlint
fi
# Generate Package.swift
script/version
}
main
# swiftlint is already installed on GitHub Actions runners.
if [[ ! -x "$(command -v swiftlint)" ]]; then
brew install swiftlint
fi