fix: add version number to Mac packages (#11506)

This commit is contained in:
Sebastian Spaink 2022-07-15 08:33:27 -05:00 committed by GitHub
parent 2ac311c4f9
commit 1456689fd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -18,7 +18,7 @@ ifdef NIGHTLY
deb_iteration := 0
tar_version := nightly
else ifeq ($(tag),)
version := $(next_version)
version := $(next_version)~$(commit)
rpm_version := $(version)~$(commit)-0
rpm_iteration := 0
deb_version := $(version)~$(commit)-0
@ -106,7 +106,7 @@ deps:
.PHONY: version
version:
@echo $(version)-$(commit)
@echo $(version)
.PHONY: versioninfo
versioninfo:

View File

@ -21,6 +21,10 @@ amdFile=$(find "$HOME/project/dist" -name "*darwin_amd64.tar*")
armFile=$(find "$HOME/project/dist" -name "*darwin_arm64.tar*")
macFiles=("${amdFile}" "${armFile}")
version=$(make version)
plutil -insert CFBundleShortVersionString -string "$version" ~/project/info.plist
plutil -insert CFBundleVersion -string "$version" ~/project/info.plist
for tarFile in "${macFiles[@]}";
do
cleanup