Skip to content

Commit

Permalink
do not tar/zip exporter binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Jun 5, 2022
1 parent 88698f5 commit 1288311
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions monitoring/exporter/build.sh
Expand Up @@ -50,19 +50,17 @@ do

# Build archive. All platforms but Windows use tar for archiving. Windows uses zip.
if [ "$plat" = "windows" ]; then
# Generate a zip archive
pushd ./releases/tmp > /dev/null
zip -q -r ../${version}/exporter."${plat}-${arc}".zip ./*
popd > /dev/null
# Just copy the binary with .exe appended.
cp ./releases/tmp/exporter ./releases/${version}/exporter."${plat}-${arc}".exe
else
plat2=$plat
# Rename 'darwin' tp 'mac'
if [ "$plat" = "darwin" ]; then
plat2=mac
fi

# Generate a tar.gz archive
tar -C ./releases/tmp -zcf ./releases/${version}/exporter."${plat2}-${arc}".tar.gz .
# Just copy the binary.
cp ./releases/tmp/exporter ./releases/${version}/exporter."${plat2}-${arc}"
fi

done
Expand Down

0 comments on commit 1288311

Please sign in to comment.