From df12307c0fd6707370201e051b48163e92fb3d13 Mon Sep 17 00:00:00 2001 From: Ivan Ilves Date: Sat, 9 Apr 2022 10:56:28 +0200 Subject: [PATCH] chore(release): respect Windows binary file naming --- scripts/github-upload-assets.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/github-upload-assets.sh b/scripts/github-upload-assets.sh index 047e69a..c6843f0 100755 --- a/scripts/github-upload-assets.sh +++ b/scripts/github-upload-assets.sh @@ -23,7 +23,11 @@ ID=$(curl -s -H "Authorization: Token ${GITHUB_TOKEN}" "${API_URL}/tags/${TAG}" pushd "${ASSETS_PATH}" for DIR in $(find -mindepth 1 -maxdepth 1 -type d); do - tar -C "${DIR}" -zc lstags -f "${DIR}-$(cat ../release/NAME).tar.gz" + EXE_FILE=lstags + + if [[ ${DIR} =~ windows ]]; then EXE_FILE=lstags.exe; fi + + tar -C "${DIR}" -zc ${EXE_FILE} -f "${DIR}-$(cat ../release/NAME).tar.gz" done for FILE in $(find -mindepth 1 -maxdepth 1 -type f); do