expiration-check/bin/rename-builds.sh
Simon Vieille 262980c36e
add debian packaging
rename builds to include the version
2024-07-24 11:38:33 +02:00

17 lines
311 B
Bash
Executable file

#!/bin/sh
VERSION="$1"
for OS in linux windows darwin; do
if [ "$OS" = "windows" ]; then
EXTENSION=".exe"
else
EXTENSION=
fi
for ARCH in amd64 arm64; do
mv -v \
"build/expiration-check-${OS}-${ARCH}${EXTENSION}" \
"build/expiration-check-${VERSION}-${OS}-${ARCH}${EXTENSION}"
done
done