File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,18 @@ VERSION=$(jq -r '.tag_name' release.json | sed 's/^v//')
2323# Extract SHAs from release.json
2424# The digest field format is "sha256:..." so we cut the prefix
2525ARM_SHA=$( jq -r ' .assets[] | select(.name | contains("aarch64") and endswith(".dmg")) | .digest' release.json | cut -d: -f2)
26+ INTEL_SHA=$( jq -r ' .assets[] | select(.name | contains("x86_64") and endswith(".dmg")) | .digest' release.json | cut -d: -f2)
2627
27- if [ -z " $ARM_SHA " ]; then
28+ if [ -z " $ARM_SHA " ] || [ -z " $INTEL_SHA " ] ; then
2829 echo " Error: Could not extract SHAs from release.json"
2930 echo " ARM SHA: $ARM_SHA "
31+ echo " Intel SHA: $INTEL_SHA "
3032 exit 1
3133fi
3234
3335echo " Updating to version $VERSION "
3436echo " ARM SHA256: $ARM_SHA "
37+ echo " Intel SHA256: $INTEL_SHA "
3538
3639# Clone the Homebrew tap repository
3740git clone https://x-access-token:${GITHUB_TOKEN} @github.com/milisp/homebrew-codexia.git
4952# Note: Using Linux-compatible sed syntax (without empty string after -i)
5053sed -i " s/version \" .*\" /version \" ${VERSION} \" /" " $TARGET_FILE "
5154sed -i " /on_arm do/,/end/ s/sha256 \" .*\" /sha256 \" ${ARM_SHA} \" /" " $TARGET_FILE "
55+ sed -i " /on_intel do/,/end/ s/sha256 \" .*\" /sha256 \" ${INTEL_SHA} \" /" " $TARGET_FILE "
5256
5357# Commit and push changes
5458git config user.name " github-actions[bot]"
You can’t perform that action at this time.
0 commit comments