Update draft-github-release.sh

This commit is contained in:
Bane Stojkovic
2026-02-15 22:52:53 +01:00
parent fccda215fc
commit c4efe7d20f
+10 -3
View File
@@ -57,14 +57,21 @@ if [ ! -d "${DEPLOY_DIR}" ]; then
exit 1 exit 1
fi fi
# Collect zip and exe files # Collect zip and exe files; skip *intel.zip and *silicon.zip (keep unsigned Mac zips only)
shopt -s nullglob shopt -s nullglob
ZIPS=("${DEPLOY_DIR}"/*.zip) ZIPS=("${DEPLOY_DIR}"/*.zip)
EXES=("${DEPLOY_DIR}"/*.exe) EXES=("${DEPLOY_DIR}"/*.exe)
ARTIFACTS=("${ZIPS[@]}" "${EXES[@]}") ARTIFACTS=()
for f in "${ZIPS[@]}" "${EXES[@]}"; do
name=$(basename "$f")
if [[ "$name" == *intel.zip || "$name" == *silicon.zip ]]; then
continue
fi
ARTIFACTS+=("$f")
done
if [ ${#ARTIFACTS[@]} -eq 0 ]; then if [ ${#ARTIFACTS[@]} -eq 0 ]; then
echo "ERROR: No .zip or .exe files found in ${DEPLOY_DIR}" echo "ERROR: No .zip or .exe files found in ${DEPLOY_DIR} (after excluding *intel.zip and *silicon.zip)"
exit 1 exit 1
fi fi