代码拉取完成,页面将自动刷新
#!/bin/sh
#
# Install all the required dependencies for building and deploying Firefox for iOS
# Assumes you already have git otherwise you wouldn't have this setup script
#
# run ./setup.sh from the command line to run
#
#
# Check if XCode Command Line Tools are installed
#
which -s xcode-select
if [[ $? != 0 ]] ; then
echo "Installing XCode Command Line Tools"
# Install XCode Command Line Tools
xcode-select --install
else
echo "XCode Command Line Tools already installed"
fi
#
# Check if Homebrew is installed
#
which -s brew
if [[ $? != 0 ]] ; then
# Install Homebrew
echo "Installing Homebrew"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
echo "Homebrew already installed"
fi
#
# Check if python is installed
#
if [ ! -e $(python -c 'from distutils.sysconfig import get_makefile_filename as m; print m()') ]; then
# Install python
echo "Installing python"
brew install python
else
echo "python already installed"
fi
#
# Check if virtualenv is installed
#
which -s virtualenv
if [[ $? != 0 ]] ; then
# Install virtualenv
echo "Installing vitualenv"
pip install virtualenv
else
echo "virtualenv already installed"
fi
if [ ! -d /usr/local/Cellar/imagemagick ] ; then
echo "installing imagemagick"
brew install imagemagick
else
echo "imagemagick already installed"
fi
#
# Check is Carthage is installed
#
which -s carthage
if [[ $? != 0 ]] ; then
# Install Carthage
echo "Installing Carthage"
brew install carthage
else
echo "Carthage already installed"
fi
#
# Check if fastlane is installed
#
which -s fastlane
if [[ $? != 0 ]] ; then
# Install fastlane
echo "Installing fastlane."
sudo gem install fastlane
fastlane init
else
echo "fastlane already installed"
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。