Commit 3f291cb3 authored by Thomas Bernard's avatar Thomas Bernard 💬 Committed by Adrien Destugues
Browse files

Info.plist: use x.y.z version strings

parent 1cc88b9d
Pipeline #372171761 passed with stages
in 60 minutes and 33 seconds
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment