Skip to content

Commit 4e77b92

Browse files
committed
Don't include SPC into Mac releases
1 parent 03cd4be commit 4e77b92

File tree

2 files changed

+20
-23
lines changed

2 files changed

+20
-23
lines changed

install-toolbox

+20-19
Original file line numberDiff line numberDiff line change
@@ -105,29 +105,30 @@ else
105105
echo "toolbox_install_error{module='artifacts'} 1" >> /tmp/toolbox_metrics
106106
fi
107107

108+
if [[ `uname` != "Darwin" ]]; then
108109

109-
echo "Installing the artifacts CLI"
110-
install_cmd mv ~/.toolbox/spc $INSTALL_PATH/spc
111-
install_cmd chmod +x $INSTALL_PATH/spc
112-
if [[ $? -eq 0 ]];then
113-
echo "spc installed"
114-
else
115-
echo "toolbox_install_error{module='spc'} 1" >> /tmp/toolbox_metrics
116-
fi
117-
118-
echo "Installing the when CLI"
119-
install_cmd mv ~/.toolbox/when $INSTALL_PATH/when
120-
install_cmd chmod +x $INSTALL_PATH/when
121-
if [[ $? -eq 0 ]];then
122-
echo "when installed"
123-
else
124-
echo "toolbox_install_error{module='when'} 1" >> /tmp/toolbox_metrics
125-
fi
110+
echo "Installing the SPC CLI"
111+
install_cmd mv ~/.toolbox/spc $INSTALL_PATH/spc
112+
install_cmd chmod +x $INSTALL_PATH/spc
113+
if [[ $? -eq 0 ]];then
114+
echo "spc installed"
115+
else
116+
echo "toolbox_install_error{module='spc'} 1" >> /tmp/toolbox_metrics
117+
fi
126118

119+
echo "Installing the when CLI"
120+
install_cmd mv ~/.toolbox/when $INSTALL_PATH/when
121+
install_cmd chmod +x $INSTALL_PATH/when
122+
if [[ $? -eq 0 ]];then
123+
echo "when installed"
124+
else
125+
echo "toolbox_install_error{module='when'} 1" >> /tmp/toolbox_metrics
126+
fi
127127

128-
if [[ `uname` != "Darwin" ]]; then
129128
echo "Starting to collect System Metrics in /tmp/system-metrics"
130-
sh ~/.toolbox/system-metrics-collector & # failure won't be propagated to the caller in case of using &
129+
130+
# failure won't be propagated to the caller in case of using &
131+
sh ~/.toolbox/system-metrics-collector &
131132
fi
132133

133134
echo "toolbox_install_total 1" >> /tmp/toolbox_metrics

release/create.sh

-4
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,17 @@ cd /tmp/Darwin && tar -zxf artifact_Darwin.tar.gz && mv artifact toolbox/ && cd
5656
echo "Download When CLI"
5757

5858
curl -s -L --retry 5 $WHEN_CLI_URL/when -o /tmp/Linux/toolbox/when
59-
curl -s -L --retry 5 $WHEN_CLI_URL/when -o /tmp/Darwin/toolbox/when
6059

6160
chmod +x /tmp/Linux/toolbox/when
62-
chmod +x /tmp/Darwin/toolbox/when
6361

6462
#
6563
# Download and add SPC CLI to the release
6664
#
6765
echo "Download SPC CLI"
6866

6967
curl -s -L --retry 5 $SPC_CLI_URL/spc_Linux_x86_64.tar.gz -o /tmp/Linux/spc_Linux.tar.gz
70-
curl -s -L --retry 5 $SPC_CLI_URL/spc_Darwin_x86_64.tar.gz -o /tmp/Darwin/spc_Darwin.tar.gz
7168

7269
cd /tmp/Linux && tar -zxf spc_Linux.tar.gz && mv spc toolbox/ && cd -
73-
cd /tmp/Darwin && tar -zxf spc_Darwin.tar.gz && mv spc toolbox/ && cd -
7470

7571
#
7672
# Create linux release

0 commit comments

Comments
 (0)