mas/script/bootstrap
2021-06-08 19:49:02 -07:00

30 lines
496 B
Bash
Executable file

#!/bin/bash -e
#
# script/bootstrap
# mas
#
# Installs development dependencies and builds project dependencies.
#
main() {
script/clean
echo "==> 👢 Bootstrapping"
# Install Ruby tools
bundle install
# 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