mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 21:27:58 +02:00
update the Info.plist version as a part of cmake so we don't forget next time :)
This commit is contained in:
@@ -13,9 +13,9 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>0.0.2.0</string>
|
<string>TOMAHAWK_VERSION</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>0.0.2</string>
|
<string>TOMAHAWK_VERSION</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>tomahawk</string>
|
<string>tomahawk</string>
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
|
@@ -35,15 +35,18 @@ if (APPLE)
|
|||||||
|
|
||||||
# Use two different sparkle update tracks for debug and release
|
# Use two different sparkle update tracks for debug and release
|
||||||
# We have to change the URL in the Info.plist file :-/
|
# We have to change the URL in the Info.plist file :-/
|
||||||
IF( NOT CMAKE_BUILD_TYPE STREQUAL "Release" )
|
|
||||||
FILE(READ ${CMAKE_SOURCE_DIR}/admin/mac/Info.plist plist)
|
FILE(READ ${CMAKE_SOURCE_DIR}/admin/mac/Info.plist plist)
|
||||||
STRING( REPLACE "http://download.tomahawk-player.org/sparkle" # match this
|
STRING( REPLACE "TOMAHAWK_VERSION"
|
||||||
"http://download.tomahawk-player.org/sparkle-debug" #replace with debug url
|
${VERSION}
|
||||||
edited_plist # save in this variable
|
edited_plist # save in this variable
|
||||||
"${plist}" # from the contents of this var
|
"${plist}" # from the contents of this var
|
||||||
)
|
)
|
||||||
FILE( WRITE ${CMAKE_BINARY_DIR}/Info.plist "${edited_plist}" )
|
IF( NOT CMAKE_BUILD_TYPE STREQUAL "Release" )
|
||||||
ELSE() # Just copy the release one
|
STRING( REPLACE "http://download.tomahawk-player.org/sparkle" # match this
|
||||||
FILE( COPY ${CMAKE_SOURCE_DIR}/admin/mac/Info.plist DESTINATION ${CMAKE_BINARY_DIR} )
|
"http://download.tomahawk-player.org/sparkle-debug" #replace with debug url
|
||||||
|
edited_plist # save in this variable
|
||||||
|
"${edited_plist}" # from the contents of this var
|
||||||
|
)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
FILE( WRITE ${CMAKE_BINARY_DIR}/Info.plist "${edited_plist}" )
|
||||||
endif (APPLE)
|
endif (APPLE)
|
||||||
|
Reference in New Issue
Block a user