mirror of
https://github.com/mas-cli/mas
synced 2024-11-26 13:30:18 +00:00
33 lines
551 B
Bash
Executable file
33 lines
551 B
Bash
Executable file
#!/bin/bash -e
|
|
#
|
|
# script/bootstrap
|
|
# mas
|
|
#
|
|
# Installs development dependencies and builds project dependencies.
|
|
#
|
|
|
|
main() {
|
|
script/clean
|
|
|
|
echo "==> 👢 Bootstrapping"
|
|
|
|
# Install Homebrew tools
|
|
rm -f Brewfile.lock.json
|
|
brew bundle install --no-upgrade --verbose
|
|
|
|
if [[ ! -x "$(command -v mise)" ]]; then
|
|
brew install mise
|
|
fi
|
|
mise install
|
|
mise ls
|
|
|
|
# Already installed on GitHub Actions runner.
|
|
if [[ ! -x "$(command -v swiftlint)" ]]; then
|
|
brew install swiftlint
|
|
fi
|
|
|
|
# Generate Package.swift
|
|
script/version
|
|
}
|
|
|
|
main
|