mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-13 09:56:31 +01:00
A bit more automation for mac builds.
This commit is contained in:
parent
d3adcbabf8
commit
baf59f4c8d
4
dist/Info.plist
vendored
4
dist/Info.plist
vendored
@ -30,9 +30,9 @@
|
|||||||
<true/>
|
<true/>
|
||||||
<key>LSRequiresCarbon</key>
|
<key>LSRequiresCarbon</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>NSHumanReadableCopyright</key>
|
|
||||||
<string></string>
|
|
||||||
<key>SUFeedURL</key>
|
<key>SUFeedURL</key>
|
||||||
<string>http://clementine-player.appspot.com/sparkle</string>
|
<string>http://clementine-player.appspot.com/sparkle</string>
|
||||||
|
<key>SUPublicDSAKeyFile</key>
|
||||||
|
<string>sparkle_pub.pem</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
2
dist/qt.conf
vendored
Normal file
2
dist/qt.conf
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[Paths]
|
||||||
|
Plugins = PlugIns
|
@ -141,7 +141,7 @@ if len(sys.argv) < 2:
|
|||||||
|
|
||||||
bundle_dir = sys.argv[1]
|
bundle_dir = sys.argv[1]
|
||||||
|
|
||||||
bundle_name = bundle_dir.split('.')[0]
|
bundle_name = os.path.basename(bundle_dir).split('.')[0]
|
||||||
|
|
||||||
commands = []
|
commands = []
|
||||||
|
|
||||||
@ -362,15 +362,10 @@ print 'Would run %d commands:' % len(commands)
|
|||||||
for command in commands:
|
for command in commands:
|
||||||
print ' '.join(command)
|
print ' '.join(command)
|
||||||
|
|
||||||
|
if len(sys.argv) <= 2:
|
||||||
print 'OK?'
|
print 'OK?'
|
||||||
raw_input()
|
raw_input()
|
||||||
|
|
||||||
for command in commands:
|
for command in commands:
|
||||||
p = subprocess.Popen(command)
|
p = subprocess.Popen(command)
|
||||||
os.waitpid(p.pid, 0)
|
os.waitpid(p.pid, 0)
|
||||||
|
|
||||||
qtconf = open(os.path.join(resources_dir, 'qt.conf'), 'w')
|
|
||||||
qtconf.write('''[Paths]
|
|
||||||
Plugins = PlugIns
|
|
||||||
''')
|
|
||||||
qtconf.close()
|
|
||||||
|
@ -384,10 +384,29 @@ add_executable(clementine
|
|||||||
target_link_libraries(clementine clementine_lib)
|
target_link_libraries(clementine clementine_lib)
|
||||||
|
|
||||||
set_target_properties(clementine PROPERTIES
|
set_target_properties(clementine PROPERTIES
|
||||||
MACOSX_BUNDLE_INFO_STRING "Clementine 0.2"
|
MACOSX_BUNDLE_INFO_PLIST "../dist/Info.plist"
|
||||||
MACOSX_BUNDLE_ICON_FILE "clementine"
|
|
||||||
MACOSX_BUNDLE_SHORT_VERSION_STRING "0.2"
|
|
||||||
)
|
)
|
||||||
|
if (APPLE)
|
||||||
|
configure_file(
|
||||||
|
../dist/clementine.icns
|
||||||
|
${PROJECT_BINARY_DIR}/clementine.app/Contents/Resources/clementine.icns
|
||||||
|
COPY_ONLY)
|
||||||
|
configure_file(
|
||||||
|
../dist/qt.conf
|
||||||
|
${PROJECT_BINARY_DIR}/clementine.app/Contents/Resources/qt.conf
|
||||||
|
COPY_ONLY)
|
||||||
|
configure_file(
|
||||||
|
../dist/sparkle_pub.pem
|
||||||
|
${PROJECT_BINARY_DIR}/clementine.app/Contents/Resources/sparkle_pub.pem
|
||||||
|
COPY_ONLY)
|
||||||
|
add_custom_target(bundle
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/../macdeploy.py ${PROJECT_BINARY_DIR}/clementine.app -f
|
||||||
|
DEPENDS clementine
|
||||||
|
)
|
||||||
|
add_custom_target(dmg
|
||||||
|
macdeployqt ${PROJECT_BINARY_DIR}/clementine.app -dmg
|
||||||
|
DEPENDS clementine)
|
||||||
|
endif (APPLE)
|
||||||
|
|
||||||
install(TARGETS clementine
|
install(TARGETS clementine
|
||||||
BUNDLE DESTINATION bin
|
BUNDLE DESTINATION bin
|
||||||
@ -402,3 +421,4 @@ install(FILES ../dist/clementine_64.png
|
|||||||
install(FILES ../dist/clementine.desktop
|
install(FILES ../dist/clementine.desktop
|
||||||
DESTINATION share/applications
|
DESTINATION share/applications
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user