Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/macos-installer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ GIT_PREFIX := $(PREFIX)/git
# Replace -rc with .rc in the version string
# This is to ensure compatibility with the format as generated by GIT-VERSION-GEN
ORIGINAL_VERSION := $(VERSION)
VERSION := $(shell echo $(ORIGINAL_VERSION) | sed 's/-rc/.rc/g')
VERSION := $(subst -rc,.rc,$(VERSION))

BUILD_DIR := $(GITHUB_WORKSPACE)/payload
DESTDIR := $(PWD)/stage/git-$(ARCH_UNIV)-$(VERSION)
Expand Down Expand Up @@ -159,6 +159,6 @@ endif
ifdef APPLE_KEYCHAIN_PROFILE
notarize:
@$(CURDIR)/../scripts/notarize.sh \
--package="disk-image/git-$(VERSION)-$(ARCH_UNIV).pkg" \
--package="disk-image/git-$(ORIGINAL_VERSION)-$(ARCH_UNIV).pkg" \
--keychain-profile="$(APPLE_KEYCHAIN_PROFILE)"
endif
5 changes: 5 additions & 0 deletions .github/workflows/build-git-installers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ jobs:

# Convert -rc to .rc to match GIT-VERSION-FILE behavior
BUILD_VERSION=$(echo "${VERSION}" | sed 's/-rc/.rc/g')
echo "$BUILD_VERSION" >git/version

# Configure universal build
cat >git/config.mak <<EOF
Expand Down Expand Up @@ -601,6 +602,10 @@ jobs:
}

VERSION="${{ needs.prereqs.outputs.tag_version }}"

# Convert -rc to .rc to match GIT-VERSION-FILE behavior
BUILD_VERSION=$(echo "${VERSION}" | sed 's/-rc/.rc/g')
echo "$BUILD_VERSION" >git/version
make -C git GIT-VERSION-FILE

ARCH="$(dpkg-architecture -q DEB_HOST_ARCH)"
Expand Down
Loading