File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -e
3+
4+ echo " => Creating a temporary directory for codesigndoc ..."
5+ temp_dir=" $( mktemp -d -t codesigndocXXXXXX) "
6+ codesigndoc_bin_path=" ${temp_dir} /codesigndoc"
7+
8+ version_to_use=" 2.2.0"
9+ if [ " $1 " != " " ] ; then
10+ version_to_use=" $1 "
11+ fi
12+ if [ ! -z " ${CODESIGNDOC_VERSION} " ] ; then
13+ version_to_use=" ${CODESIGNDOC_VERSION} "
14+ fi
15+ echo " => Downloading version: ${version_to_use} "
16+
17+ scan_command_to_use=" xcodeuitests"
18+
19+ codesigndoc_download_url=" https://github.com/bitrise-tools/codesigndoc/releases/download/${version_to_use} /codesigndoc-Darwin-x86_64"
20+ echo " => Downloading codesigndoc from (${codesigndoc_download_url} ) to (${codesigndoc_bin_path} ) ..."
21+ curl -fL --progress-bar --output " ${codesigndoc_bin_path} " " $codesigndoc_download_url "
22+ echo " => Making it executable ..."
23+ chmod +x " ${codesigndoc_bin_path} "
24+ echo " => codesigndoc version: $( ${codesigndoc_bin_path} version) "
25+ echo " => Running codesigndoc scan ..."
26+ echo
27+ ${codesigndoc_bin_path} scan ${scan_command_to_use}
You can’t perform that action at this time.
0 commit comments