Automatically update macOS build version at build time.
This commit is contained in:
parent
6e21c4fab1
commit
dd3009408f
8 changed files with 33 additions and 14 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -13,6 +13,7 @@ TuxPaint.dmg
|
|||
*.dylib
|
||||
*.dSYM
|
||||
.DS_Store
|
||||
Info.plist
|
||||
*.thumbs
|
||||
*.swp
|
||||
*.swo
|
||||
|
|
|
|||
16
Makefile
16
Makefile
|
|
@ -1113,6 +1113,7 @@ install-macbundle:
|
|||
@install -d -m 755 $(BUNDLE)/Contents/lib
|
||||
@install -m 755 tuxpaint $(BUNDLE)/Contents/MacOS
|
||||
@install -m 644 macos/PkgInfo $(BUNDLE)/Contents
|
||||
@VER_VERSION=$(VER_VERSION) macos/template.sh macos/Info.plist.shdoc > macos/Info.plist
|
||||
@install -m 644 macos/Info.plist $(BUNDLE)/Contents
|
||||
@install -m 644 macos/tuxpaint.icns $(BUNDLE)/Contents/Resources
|
||||
@macos/build-app.sh
|
||||
|
|
@ -1122,13 +1123,14 @@ install-macbundle:
|
|||
install-iosbundle:
|
||||
@echo
|
||||
@echo "...Installing iOS App Bundle Support Files..."
|
||||
install -m 755 tuxpaint $(BUNDLE)
|
||||
install -m 644 ios/PkgInfo $(BUNDLE)
|
||||
install -m 644 ios/Info.plist $(BUNDLE)
|
||||
install -m 644 ios/tuxpaint.icns $(BUNDLE)
|
||||
install -m 644 ios/tuxpaint.cfg $(BUNDLE)
|
||||
install -m 644 ios/Splash.png $(BUNDLE)
|
||||
ibtool --compile $(BUNDLE)/Splash.storyboardc ios/Splash.storyboard
|
||||
@install -m 755 tuxpaint $(BUNDLE)
|
||||
@install -m 644 ios/PkgInfo $(BUNDLE)
|
||||
@VER_VERSION=$(VER_VERSION) ios/template.sh ios/Info.plist.shdoc > ios/Info.plist
|
||||
@install -m 644 ios/Info.plist $(BUNDLE)
|
||||
@install -m 644 ios/tuxpaint.icns $(BUNDLE)
|
||||
@install -m 644 ios/tuxpaint.cfg $(BUNDLE)
|
||||
@install -m 644 ios/Splash.png $(BUNDLE)
|
||||
@ibtool --compile $(BUNDLE)/Splash.storyboardc ios/Splash.storyboard
|
||||
|
||||
|
||||
# Create DMG for macOS
|
||||
|
|
|
|||
|
|
@ -72,6 +72,9 @@ http://www.tuxpaint.org/
|
|||
(also corrects some warnings being reported by libpng (via SDL_image);
|
||||
h/t Tim Dickson, closes https://sourceforge.net/p/tuxpaint/bugs/252/)
|
||||
|
||||
* Automatically update macOS build version from the command line at build
|
||||
time.
|
||||
|
||||
* Ports & Building:
|
||||
-----------------
|
||||
* Change name of Tux Paint config. files from ".conf" to ".cfg"
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ a .tar.gz source tarball, and making the tarball available for download.
|
|||
|
||||
* Build description files:
|
||||
* tuxpaint.spec (Linux RPM package)
|
||||
* macos/Info.plist (macOS build)
|
||||
* win32/resources.rc (Windows mingw/msys build)
|
||||
|
||||
* Changelog
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<key>CFBundleExecutable</key>
|
||||
<string>tuxpaint</string>
|
||||
<key>CFBundleGetInfoString</key>
|
||||
<string>0.9.26, Copyright 2009-2020, Tux Paint Development Team</string>
|
||||
<string>${VER_VERSION}, Copyright 2002-$(date +%Y), Tux Paint Development Team</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>tuxpaint.icns</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
|
|
@ -19,11 +19,11 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>0.9.26</string>
|
||||
<string>${VER_VERSION}</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>TXPT</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>2020-12-27</string>
|
||||
<string>$(date +%Y-%m-%d)</string>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
1
ios/template.sh
Symbolic link
1
ios/template.sh
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../macos/template.sh
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
<key>CFBundleExecutable</key>
|
||||
<string>tuxpaint</string>
|
||||
<key>CFBundleGetInfoString</key>
|
||||
<string>0.9.29, Copyright 2002-2022, Tux Paint Development Team</string>
|
||||
<string>${VER_VERSION}, Copyright 2002-$(date +%Y), Tux Paint Development Team</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>tuxpaint.icns</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
|
|
@ -19,10 +19,10 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>0.9.29</string>
|
||||
<string>${VER_VERSION}</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>TXPT</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>2022-06-14</string>
|
||||
<string>$(date +%Y-%m-%d)</string>
|
||||
</dict>
|
||||
</plist>
|
||||
13
macos/template.sh
Executable file
13
macos/template.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
#
|
||||
# Process a document containing shell escape sequences.
|
||||
#
|
||||
# Usage: template.sh document.shdoc
|
||||
#
|
||||
|
||||
bash <<<"cat <<__SHDOC_TEMPLATE__$$
|
||||
$(cat "$@")
|
||||
__SHDOC_TEMPLATE__$$"
|
||||
|
||||
# vim:ft=bash
|
||||
Loading…
Add table
Add a link
Reference in a new issue