Fixed install script errors
这个提交包含在:
父节点
eb9bf26baa
当前提交
04d93fcf83
共有 1 个文件被更改,包括 26 次插入 和 25 次删除
51
install.sh
51
install.sh
|
@ -2,31 +2,6 @@
|
|||
|
||||
base_dir=$(pwd)
|
||||
|
||||
|
||||
if [[ $1 == "--android" ]]
|
||||
then
|
||||
echo "Installing for Android only"
|
||||
node_install
|
||||
android_install
|
||||
elif [[ $1 == "--ios" ]]
|
||||
then
|
||||
echo "Installing for iOS only"
|
||||
node_install
|
||||
ios_install
|
||||
elif [[ $1 == "--all" ]]
|
||||
then
|
||||
echo "Installing for Android and iOS"
|
||||
node_install
|
||||
android_install
|
||||
ios_install
|
||||
else
|
||||
echo "Usage: ./install.sh [mode]"
|
||||
echo " [mode]: --android Installs only Android dependencies"
|
||||
echo " [mode]: --ios Installs only iOS dependencies"
|
||||
echo " [mode]: --all Installs Android and iOS dependencies"
|
||||
fi
|
||||
exit
|
||||
|
||||
function ios_install {
|
||||
cd "$base_dir"/ios && pod install
|
||||
}
|
||||
|
@ -76,5 +51,31 @@ function node_install {
|
|||
./clear-node-cache.sh
|
||||
}
|
||||
|
||||
if [[ $1 == "--android" ]]
|
||||
then
|
||||
echo "Installing for Android only"
|
||||
node_install
|
||||
android_install
|
||||
elif [[ $1 == "--ios" ]]
|
||||
then
|
||||
echo "Installing for iOS only"
|
||||
node_install
|
||||
ios_install
|
||||
elif [[ $1 == "--all" ]]
|
||||
then
|
||||
echo "Installing for Android and iOS"
|
||||
node_install
|
||||
android_install
|
||||
ios_install
|
||||
else
|
||||
echo "Usage: ./install.sh [mode]"
|
||||
echo " [mode]: --android Installs only Android dependencies"
|
||||
echo " [mode]: --ios Installs only iOS dependencies"
|
||||
echo " [mode]: --all Installs Android and iOS dependencies"
|
||||
fi
|
||||
exit
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
正在加载…
在新工单中引用