Skip to content

Commit

Permalink
Update release workflow to set version in osx plist (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxbrian authored Jul 10, 2024
1 parent 5718955 commit 3291cbe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ jobs:
run: brew install scdoc
- name: Install ARM target
run: rustup update && rustup target add aarch64-apple-darwin && rustup target add x86_64-apple-darwin
- name: Setup info.plist
run: |
TAG=${GITHUB_REF##*/}
HASH=$(git rev-parse --short HEAD)
echo "Setting version to $TAG ($HASH)"
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${GITHUB_REF##*/}" ./extra/osx/Alacritty.app/Contents/Info.plist
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $HASH" ./extra/osx/Alacritty.app/Contents/Info.plist
- name: Test
run: cargo test --release --target=x86_64-apple-darwin
- name: Build ARM
Expand Down

0 comments on commit 3291cbe

Please sign in to comment.