diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d7097676e01..a21c59b0b33 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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