mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +00:00
f08f0a37d7
Partial #580 Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
27 lines
605 B
Bash
Executable file
27 lines
605 B
Bash
Executable file
#!/bin/bash -eu
|
|
#
|
|
# script/bootstrap
|
|
# mas
|
|
#
|
|
# Installs development dependencies and builds project dependencies.
|
|
#
|
|
|
|
mas_dir="$(readlink -fn "$(dirname "${BASH_SOURCE:-"${0}"}")/..")"
|
|
|
|
if ! cd -- "${mas_dir}"; then
|
|
printf $'Error: Could not cd into mas directory: %s\n' "${mas_dir}" >&2
|
|
exit 1
|
|
fi
|
|
|
|
script/clean
|
|
|
|
printf $'==> 👢 Bootstrapping (%s)\n' "$(script/version)"
|
|
|
|
# Install Homebrew tools
|
|
rm -f Brewfile.lock.json
|
|
brew bundle install --no-upgrade --verbose
|
|
|
|
# swiftlint is already installed on GitHub Actions runners.
|
|
if [[ ! -x "$(command -v swiftlint)" ]]; then
|
|
brew install swiftlint
|
|
fi
|