File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 9797
9898echo " ✅ All macOS binaries signed successfully."
9999
100+ # --- Recreate tar.gz with signed binaries (for Homebrew) ---
101+ echo " 📦 Recreating tar.gz archives with signed binaries..."
102+ for binary in " $DIST_DIR " /phrase_macosx_* ; do
103+ [[ " $binary " == * .tar.gz ]] && continue
104+ [[ " $binary " == * .zip ]] && continue
105+ [[ ! -f " $binary " ]] && continue
106+ relbin=" ${binary# ${DIST_DIR} / } "
107+ # Remove old tar.gz if exists
108+ rm -f " $DIST_DIR /${relbin} .tar.gz"
109+ # Create new tar.gz with signed binary renamed to 'phrase'
110+ echo " Creating $DIST_DIR /${relbin} .tar.gz with signed binary..."
111+ (
112+ cd " $DIST_DIR "
113+ cp " $relbin " phrase
114+ tar --create phrase | gzip -n > " ${relbin} .tar.gz"
115+ rm phrase
116+ )
117+ done
118+
100119# --- Zip artifacts for notarization ---
101120echo " 📦 Zipping macOS binaries for notarization..."
102121shopt -s nullglob
You can’t perform that action at this time.
0 commit comments