From 51ea2695487bea419d8e6664f97a5bf3bffcb9a4 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Mon, 23 Jul 2018 03:45:05 -0400 Subject: [PATCH] Add VERSION to Info.plist --- Info.plist | 6 +++--- Makefile | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Info.plist b/Info.plist index 18bdd64e..fb6c769c 100644 --- a/Info.plist +++ b/Info.plist @@ -20,10 +20,10 @@ Rack CFBundleIconFile icon - CFBundleLongVersionString - CFBundleShortVersionString - + {VERSION} + CFBundleGetInfoString + {VERSION}, VCV NSPrincipalClass NSApplication NSHighResolutionCapable diff --git a/Makefile b/Makefile index 5b966eb2..622f9ba3 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,8 @@ FLAGS += \ include arch.mk STRIP ?= strip +SED := perl -p -i -e +# SED := sed -i # Sources and build flags @@ -100,6 +102,7 @@ ifdef ARCH_MAC mkdir -p $(BUNDLE)/Contents mkdir -p $(BUNDLE)/Contents/Resources cp Info.plist $(BUNDLE)/Contents/ + $(SED) 's/{VERSION}/$(VERSION)/g' $(BUNDLE)/Contents/Info.plist cp -R LICENSE* icon.icns res $(BUNDLE)/Contents/Resources mkdir -p $(BUNDLE)/Contents/MacOS