4
4
# Install all the required dependencies for building and deploying Firefox for iOS
5
5
# Assumes you already have git otherwise you wouldn't have this setup script
6
6
#
7
- # run ./setup .sh from the command line to run
7
+ # run ./setup_build_tools .sh from the command line to run
8
8
#
9
9
10
10
#
@@ -28,18 +28,8 @@ if [[ $? != 0 ]] ; then
28
28
echo " Installing Homebrew"
29
29
ruby -e " $( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install) "
30
30
else
31
- echo " Homebrew already installed"
32
- fi
33
-
34
- #
35
- # Check if python is installed
36
- #
37
- if [ ! -e $( python -c ' from distutils.sysconfig import get_makefile_filename as m; print m()' ) ]; then
38
- # Install python
39
- echo " Installing python"
40
- brew install python
41
- else
42
- echo " python already installed"
31
+ echo " Homebrew already installed, but will update to get latest"
32
+ brew update
43
33
fi
44
34
45
35
#
@@ -49,30 +39,11 @@ which -s virtualenv
49
39
if [[ $? != 0 ]] ; then
50
40
# Install virtualenv
51
41
echo " Installing vitualenv"
52
- pip install virtualenv
42
+ pip3 install virtualenv
53
43
else
54
44
echo " virtualenv already installed"
55
45
fi
56
46
57
- if [ ! -d /usr/local/Cellar/imagemagick ] ; then
58
- echo " installing imagemagick"
59
- brew install imagemagick
60
- else
61
- echo " imagemagick already installed"
62
- fi
63
-
64
- #
65
- # Check if Carthage is installed
66
- #
67
- which -s carthage
68
- if [[ $? != 0 ]] ; then
69
- # Install Carthage
70
- echo " Installing Carthage"
71
- brew install carthage
72
- else
73
- echo " Carthage already installed"
74
- fi
75
-
76
47
#
77
48
# Check if Node is installed
78
49
#
86
57
fi
87
58
88
59
#
89
- # Check if fastlane is installed
60
+ # Check if swiftlint is installed
90
61
#
91
- which -s fastlane
62
+ which -s swiftlint
92
63
if [[ $? != 0 ]] ; then
93
- # Install fastlane
94
- echo " Installing fastlane."
95
- sudo gem install fastlane
96
- fastlane init
64
+ # Install swiftlint
65
+ echo " Installing swiftlint."
66
+ brew install swiftlint
97
67
else
98
- echo " fastlane already installed"
68
+ echo " Swiftlint already installed"
99
69
fi
0 commit comments