Info.plist: use x.y.z version strings
This commit is contained in:
parent
1cc88b9d3f
commit
3f291cb32f
Binary file not shown.
@ -19,12 +19,15 @@
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<string>GRAFX2_VERSION</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>Grafx2 version 2.8.3104</string>
|
||||
<string>GRAFX2_VERSION</string>
|
||||
<key>NSMainNibFile</key>
|
||||
<string>SDLMain</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string>NSApplication</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string>Copyright 2008-2021 the Grafx2 project team.
|
||||
MacOS X version by Franck Charlet.</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
@ -72,6 +72,7 @@ else
|
||||
endif
|
||||
|
||||
VERSIONTAG = $(subst wip.,wip,$(LABEL).$(GIT_REVISION))
|
||||
VERSIONPLIST = $(shell echo $(VERSIONTAG) | cut -d- -f1)
|
||||
|
||||
CFLAGS_CACHE = $(OBJDIR)/.cflags.cache
|
||||
|
||||
@ -932,8 +933,8 @@ $(MACAPPEXE) : $(BIN)
|
||||
cp Grafx2.icns Grafx2.app/Contents/Resources
|
||||
cp ../share/grafx2/gfx2.png Grafx2.app/Contents/Resources
|
||||
mkdir -p Grafx2.app/Contents/Resources/English.lproj
|
||||
cat Info.plist | sed -e 's/Grafx2 version [.0-9]*/Grafx2 version $(VERSIONTAG)/' > Grafx2.app/Contents/Info.plist
|
||||
iconv -f UTF-16BE English.lproj/InfoPlist.strings | sed -e 's/Grafx2 version [.0-9]*/Grafx2 version $(VERSIONTAG)/' | iconv -t UTF-16BE > Grafx2.app/Contents/Resources/English.lproj/InfoPlist.strings
|
||||
cat Info.plist | sed -e 's/GRAFX2_VERSION/$(VERSIONPLIST)/' > Grafx2.app/Contents/Info.plist
|
||||
iconv -f UTF-16BE English.lproj/InfoPlist.strings | sed -e 's/GRAFX2_VERSION/$(VERSIONPLIST)/' | iconv -t UTF-16BE > Grafx2.app/Contents/Resources/English.lproj/InfoPlist.strings
|
||||
cp -r ../share/grafx2/fonts Grafx2.app/Contents/Resources
|
||||
cp -r ../share/grafx2/skins Grafx2.app/Contents/Resources
|
||||
cp -r ../share/grafx2/gfx2def.ini Grafx2.app/Contents/Resources
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user