Add: create bundles via CPack

CPack works closely together with CMake to do the right thing in
terms of bundling (called 'package'). This generates all the
packaging we need, and some more.
This commit is contained in:
Patric Stout
2019-04-07 12:00:36 +02:00
committed by glx22
parent 56d54cf60e
commit b7643b1d36
39 changed files with 231 additions and 2629 deletions

33
os/macosx/Info.plist.in Normal file
View File

@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDisplayName</key>
<string>${CPACK_BUNDLE_NAME}</string>
<key>CFBundleExecutable</key>
<string>${CPACK_BUNDLE_NAME}</string>
<key>CFBundleGetInfoString</key>
<string>#CPACK_PACKAGE_VERSION#, Copyright 2004-${CURRENT_YEAR} The OpenTTD team</string>
<key>CFBundleIconFile</key>
<string>${CPACK_BUNDLE_NAME}.icns</string>
<key>CFBundleIdentifier</key>
<string>org.openttd.openttd</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${CPACK_BUNDLE_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>#CPACK_PACKAGE_VERSION#</string>
<key>CFBundleVersion</key>
<string>#CPACK_PACKAGE_VERSION#</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright 2004-${CURRENT_YEAR} The OpenTTD team</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>