Skip to content

Commit f5aa6e1

Browse files
committed
Merge branch 'master' of github.com:bitrise-io/steps-xcode-archive
2 parents e49bf4a + e9f284a commit f5aa6e1

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

step.sh

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -126,17 +126,6 @@ if [ ! -z "${workdir}" ] ; then
126126
cd "${workdir}"
127127
fi
128128

129-
xcode_configuration=''
130-
if [ ! -z "${configuration}" ] ; then
131-
xcode_configuration="-configuration ${configuration}"
132-
fi
133-
134-
135-
clean_build_param=''
136-
if [[ "${is_clean_build}" == "yes" ]] ; then
137-
clean_build_param='clean'
138-
fi
139-
140129

141130
#
142131
# Cleanup function
@@ -169,8 +158,14 @@ echo "=> Create the Archive ..."
169158
#
170159
# Create the Archive with Xcode Command Line tools
171160
archive_cmd="xcodebuild ${CONFIG_xcode_project_action} \"${project_path}\""
172-
archive_cmd="$archive_cmd -scheme \"${scheme}\" ${xcode_configuration}"
173-
archive_cmd="$archive_cmd ${clean_build_param} archive -archivePath \"${archive_path}\""
161+
archive_cmd="$archive_cmd -scheme \"${scheme}\""
162+
if [ ! -z "${configuration}" ] ; then
163+
archive_cmd="$archive_cmd -configuration \"${configuration}\""
164+
fi
165+
if [[ "${is_clean_build}" == "yes" ]] ; then
166+
archive_cmd="$archive_cmd clean"
167+
fi
168+
archive_cmd="$archive_cmd archive -archivePath \"${archive_path}\""
174169

175170
if [[ "${is_force_code_sign}" == "yes" ]] ; then
176171
echo " (!) Using Force Code Signing mode!"
@@ -244,8 +239,8 @@ if [[ "${xcode_major_version}" == "6" ]] ; then
244239
fi
245240

246241
echo
247-
echo "export command:"
248-
echo "$export_command"
242+
echo "=> Export command:"
243+
echo '$' $export_command
249244
echo
250245

251246
eval $export_command
@@ -288,8 +283,8 @@ else
288283
fi
289284

290285
echo
291-
echo "export command:"
292-
echo "$export_command"
286+
echo "=> Export command:"
287+
echo '$' $export_command
293288
echo
294289

295290
eval $export_command

0 commit comments

Comments
 (0)