Merge pull request #40 from goetzk/remove-mac-specific-version-detection-code
Remove mac specific version detection code
This commit is contained in:
commit
17a45c8da3
|
@ -31,19 +31,7 @@ LINK_DIRECTORIES(/opt/local/lib)
|
||||||
|
|
||||||
##install part
|
##install part
|
||||||
|
|
||||||
#extracting the current version...
|
set(CPACK_PACKAGE_FILE_NAME MegaGlest-${MG_VERSION_H_CONTENTS})
|
||||||
EXECUTE_PROCESS(
|
|
||||||
COMMAND /usr/bin/sed
|
|
||||||
-n -e "s/.*glestVersionString = \"v\\\(.*\\\)\";.*/\\1/p"
|
|
||||||
|
|
||||||
game_util.cpp
|
|
||||||
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/source/glest_game/facilities"
|
|
||||||
OUTPUT_VARIABLE MEGAGLEST_VERSION )
|
|
||||||
|
|
||||||
#for some reason the MEGAGLEST_VERSION can containts return like thus remove it
|
|
||||||
STRING(REGEX REPLACE "\n" "" MEGAGLEST_VERSION "${MEGAGLEST_VERSION}")
|
|
||||||
|
|
||||||
set(CPACK_PACKAGE_FILE_NAME MegaGlest-${MEGAGLEST_VERSION})
|
|
||||||
|
|
||||||
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/mk/macosx/Info.plist" "${CMAKE_CURRENT_BINARY_DIR}/Info.plist")
|
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/mk/macosx/Info.plist" "${CMAKE_CURRENT_BINARY_DIR}/Info.plist")
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>MegaGlest</string>
|
<string>MegaGlest</string>
|
||||||
<key>CFBundleGetInfoString</key>
|
<key>CFBundleGetInfoString</key>
|
||||||
<string>${MEGAGLEST_VERSION}, © 2001-2010 The Glest Team All Rights Reserved.</string>
|
<string>${MG_VERSION_H_CONTENTS}, © 2001-2010 The Glest Team All Rights Reserved.</string>
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>MegaGlest</string>
|
<string>MegaGlest</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
|
@ -19,11 +19,11 @@
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>${MEGAGLEST_VERSION}</string>
|
<string>${MG_VERSION_H_CONTENTS}</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>${MEGAGLEST_VERSION}</string>
|
<string>${MG_VERSION_H_CONTENTS}</string>
|
||||||
<key>NSMainNibFile</key>
|
<key>NSMainNibFile</key>
|
||||||
<string>MainMenu</string>
|
<string>MainMenu</string>
|
||||||
<key>NSPrincipalClass</key>
|
<key>NSPrincipalClass</key>
|
||||||
|
|
Loading…
Reference in New Issue