2017-11-27 19:40:21 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
########################################################################
|
2017-12-01 17:17:25 +00:00
|
|
|
# This install script will setup your development dependencies on OS X
|
|
|
|
# or Ubuntu. Ubuntu 16.04 is the only tested version.
|
2017-11-27 19:40:21 +00:00
|
|
|
#
|
2017-12-01 17:17:25 +00:00
|
|
|
# Usage: scripts/setup
|
2017-11-27 19:40:21 +00:00
|
|
|
########################################################################
|
|
|
|
|
|
|
|
_current_dir=$(cd "${BASH_SOURCE%/*}" && pwd)
|
2017-12-01 17:17:25 +00:00
|
|
|
source "$_current_dir/lib/setup/path-support.sh"
|
2017-11-27 19:40:21 +00:00
|
|
|
|
|
|
|
source_lib "output.sh"
|
|
|
|
source_lib "packages.sh"
|
|
|
|
source_lib "platform.sh"
|
|
|
|
source_lib "installers.sh"
|
|
|
|
|
2017-12-01 17:17:25 +00:00
|
|
|
exit_unless_os_supported
|
2017-11-27 19:40:21 +00:00
|
|
|
|
|
|
|
load_nvm_if_available
|
|
|
|
load_rvm_if_available
|
|
|
|
|
|
|
|
####
|
|
|
|
setup_header "Installing requirements..."
|
|
|
|
|
2017-12-01 17:17:25 +00:00
|
|
|
install_and_setup_package_manager
|
2018-07-30 19:44:44 +00:00
|
|
|
install_wget
|
2017-12-01 17:17:25 +00:00
|
|
|
install_java8
|
2018-06-27 14:30:00 +00:00
|
|
|
install_clojure_cli
|
2017-12-01 17:17:25 +00:00
|
|
|
install_leiningen
|
2017-11-27 19:40:21 +00:00
|
|
|
install_node
|
2017-12-01 17:17:25 +00:00
|
|
|
install_watchman
|
2017-11-27 19:40:21 +00:00
|
|
|
install_react_native_cli
|
2017-12-01 17:17:25 +00:00
|
|
|
install_android_sdk
|
2018-07-10 15:56:26 +00:00
|
|
|
install_android_ndk
|
2017-12-01 17:17:25 +00:00
|
|
|
install_maven
|
2017-11-27 19:40:21 +00:00
|
|
|
install_cocoapods
|
|
|
|
|
|
|
|
####
|
|
|
|
echo && setup_header "Installing dependencies..."
|
|
|
|
|
2018-08-30 14:14:17 +00:00
|
|
|
dependency_setup make prepare-android
|
|
|
|
dependency_setup make prepare-ios
|
2017-11-27 19:40:21 +00:00
|
|
|
|
|
|
|
setup_complete
|