Browse Source

Add VERSION to Info.plist

tags/v1.0.0
Andrew Belt 6 years ago
parent
commit
51ea269548
2 changed files with 6 additions and 3 deletions
  1. +3
    -3
      Info.plist
  2. +3
    -0
      Makefile

+ 3
- 3
Info.plist View File

@@ -20,10 +20,10 @@
<string>Rack</string> <string>Rack</string>
<key>CFBundleIconFile</key> <key>CFBundleIconFile</key>
<string>icon</string> <string>icon</string>
<key>CFBundleLongVersionString</key>
<string></string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string></string>
<string>{VERSION}</string>
<key>CFBundleGetInfoString</key>
<string>{VERSION}, VCV</string>
<key>NSPrincipalClass</key> <key>NSPrincipalClass</key>
<string>NSApplication</string> <string>NSApplication</string>
<key>NSHighResolutionCapable</key> <key>NSHighResolutionCapable</key>


+ 3
- 0
Makefile View File

@@ -8,6 +8,8 @@ FLAGS += \
include arch.mk include arch.mk


STRIP ?= strip STRIP ?= strip
SED := perl -p -i -e
# SED := sed -i


# Sources and build flags # Sources and build flags


@@ -100,6 +102,7 @@ ifdef ARCH_MAC
mkdir -p $(BUNDLE)/Contents mkdir -p $(BUNDLE)/Contents
mkdir -p $(BUNDLE)/Contents/Resources mkdir -p $(BUNDLE)/Contents/Resources
cp Info.plist $(BUNDLE)/Contents/ cp Info.plist $(BUNDLE)/Contents/
$(SED) 's/{VERSION}/$(VERSION)/g' $(BUNDLE)/Contents/Info.plist
cp -R LICENSE* icon.icns res $(BUNDLE)/Contents/Resources cp -R LICENSE* icon.icns res $(BUNDLE)/Contents/Resources


mkdir -p $(BUNDLE)/Contents/MacOS mkdir -p $(BUNDLE)/Contents/MacOS


Loading…
Cancel
Save