mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-14 05:42:54 -07:00
fix(ci): preserve executable bit for mac binaries (#26600)
This commit is contained in:
@@ -311,15 +311,15 @@ runs:
|
||||
RELEASE_ASSETS=("gemini-cli-bundle.zip")
|
||||
|
||||
# Check for and prepare macOS binaries if they exist
|
||||
if [[ -f "dist/darwin-arm64/gemini" ]]; then
|
||||
zip -j gemini-darwin-arm64-unsigned.zip dist/darwin-arm64/gemini
|
||||
RELEASE_ASSETS+=("gemini-darwin-arm64-unsigned.zip")
|
||||
fi
|
||||
|
||||
if [[ -f "dist/darwin-x64/gemini" ]]; then
|
||||
zip -j gemini-darwin-x64-unsigned.zip dist/darwin-x64/gemini
|
||||
RELEASE_ASSETS+=("gemini-darwin-x64-unsigned.zip")
|
||||
fi
|
||||
for arch in arm64 x64; do
|
||||
BINARY_PATH="dist/darwin-${arch}/gemini"
|
||||
if [[ -f "$BINARY_PATH" ]]; then
|
||||
chmod +x "$BINARY_PATH"
|
||||
ZIP_NAME="gemini-darwin-${arch}-unsigned.zip"
|
||||
zip -j "$ZIP_NAME" "$BINARY_PATH"
|
||||
RELEASE_ASSETS+=("$ZIP_NAME")
|
||||
fi
|
||||
done
|
||||
|
||||
gh release create "${INPUTS_RELEASE_TAG}" \
|
||||
"${RELEASE_ASSETS[@]}" \
|
||||
|
||||
Reference in New Issue
Block a user