Skip to content

Commit ae0d08a

Browse files
committed
recreate signed .tar.gz
1 parent 8f5dd38 commit ae0d08a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

build/sign_and_notarize.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,25 @@ done
9797

9898
echo "✅ 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 ---
101120
echo "📦 Zipping macOS binaries for notarization..."
102121
shopt -s nullglob

0 commit comments

Comments
 (0)