2015-08-21 22:24:33 +08:00
|
|
|
#!/bin/bash -e
|
2019-01-18 21:37:51 -07:00
|
|
|
#
|
|
|
|
# script/bootstrap
|
|
|
|
# mas
|
|
|
|
#
|
|
|
|
# Installs gem tools, installs Swift dependencies via CocoaPods and sorts
|
|
|
|
# the Xcode project file references.
|
|
|
|
#
|
2015-08-21 22:24:33 +08:00
|
|
|
|
|
|
|
main() {
|
2020-04-25 14:07:28 -06:00
|
|
|
script/clean
|
|
|
|
|
2018-07-04 19:55:28 -06:00
|
|
|
echo "==> 👢 Bootstrapping"
|
2020-04-25 15:19:14 -06:00
|
|
|
|
|
|
|
# Install ruby tools
|
2015-08-21 22:24:33 +08:00
|
|
|
bundle install
|
2020-04-25 15:19:14 -06:00
|
|
|
|
|
|
|
# Install Mint and shellcheck
|
2019-01-12 13:23:09 -07:00
|
|
|
brew bundle install --verbose
|
2020-04-25 15:19:14 -06:00
|
|
|
|
|
|
|
# Set up mint cache to be relative to user HOME
|
|
|
|
export MINT_PATH=~/.mint/cache
|
|
|
|
mkdir -p $MINT_PATH
|
2020-04-25 12:48:35 -06:00
|
|
|
mint bootstrap --verbose
|
2020-04-25 15:19:14 -06:00
|
|
|
|
|
|
|
# Download and build project dependencies
|
2018-09-05 09:45:01 +10:00
|
|
|
carthage bootstrap --platform macOS --cache-builds
|
2015-08-21 22:24:33 +08:00
|
|
|
|
2020-04-25 15:19:14 -06:00
|
|
|
# Old Xcode project sort script used for CocoaSeeds
|
2015-08-21 22:24:33 +08:00
|
|
|
script/sort
|
|
|
|
}
|
|
|
|
|
|
|
|
main
|