Skip to content

Commit

Permalink
fix: add version number to Mac packages (#11506)
Browse files Browse the repository at this point in the history
  • Loading branch information
sspaink authored Jul 15, 2022
1 parent 2ac311c commit 1456689
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -106,7 +106,7 @@ deps:

.PHONY: version
version:
@echo $(version)-$(commit)
@echo $(version)

.PHONY: versioninfo
versioninfo:
Expand Down
4 changes: 4 additions & 0 deletions scripts/mac-signing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1456689

Please sign in to comment.