makefile: read version from built Info.plist

This commit is contained in:
Jesús A. Álvarez 2020-05-14 19:15:24 +02:00
parent 5d3ff85601
commit 95756edc1f

View File

@ -3,7 +3,7 @@ PROJECT="Mini vMac.xcodeproj"
SCHEME="Mini vMac"
CONFIGURATION=Release
APP="build/Build/Products/$(CONFIGURATION)-iphoneos/Mini vMac.app"
VERSION=`xpath 2>/dev/null Mini\ vMac/Info.plist "/plist/dict/key[.='CFBundleShortVersionString']/following-sibling::*[1]/text()"`
VERSION=`plutil -extract CFBundleShortVersionString xml1 $(APP)/Info.plist -o - | xpath 2>/dev/null '/plist/string/text()'`
LDID=ldid
deb: $(APP)