From c4efe7d20f58bcfd1814b330caf08c82da0b9ad9 Mon Sep 17 00:00:00 2001 From: Bane Stojkovic Date: Sun, 15 Feb 2026 22:52:53 +0100 Subject: [PATCH] Update draft-github-release.sh --- diylc/draft-github-release.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/diylc/draft-github-release.sh b/diylc/draft-github-release.sh index 0359208d..d157e788 100755 --- a/diylc/draft-github-release.sh +++ b/diylc/draft-github-release.sh @@ -57,14 +57,21 @@ if [ ! -d "${DEPLOY_DIR}" ]; then exit 1 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 ZIPS=("${DEPLOY_DIR}"/*.zip) 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 - 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 fi