File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -118,13 +118,19 @@ cd "${STAGING_DIR}" || exit 1
118
118
fi
119
119
info " Processing ${artifact_name} for ${arch} ...\n"
120
120
artifact=" $( find . -type f -name ${search_pattern} | head -1) "
121
+ info " Found artifact: ${artifact} \n"
121
122
if [[ -f " ${artifact} " ]]; then
122
123
${makedir} " dist/${arch} /${artifact_name} "
123
124
if [[ " $artifact_path " =~ .jar ]]; then
124
125
${copy} ${artifact} " dist/${arch} /${artifact_name} "
125
126
else
126
127
${unarchive} " ${artifact} " --unlink-first -C " dist/${arch} /${artifact_name} "
127
- ${move} " dist/${arch} /${artifact_name} /${artifact_name} " " dist/${arch} /${artifact_name} /${artifact_name} -${RELEASE_TAG} "
128
+ if [[ " ${item%% ,* } " == " windows" ]]; then
129
+ # In windows archive we have folder with ".exe" at the end
130
+ ${move} " dist/${arch} /${artifact_name} /${artifact_name} .exe" " dist/${arch} /${artifact_name} /${artifact_name} -${RELEASE_TAG} "
131
+ else
132
+ ${move} " dist/${arch} /${artifact_name} /${artifact_name} " " dist/${arch} /${artifact_name} /${artifact_name} -${RELEASE_TAG} "
133
+ fi
128
134
# Fix symlinks in the artifact: replace them with real files
129
135
find " dist/${arch} /${artifact_name} /${artifact_name} -${RELEASE_TAG} " -type l | while read link; do
130
136
real_path=" $( realpath " ${link} " ) "
You can’t perform that action at this time.
0 commit comments