strawberry-audio-player-win.../cmake/Dmg.cmake

9 lines
603 B
CMake
Raw Normal View History

2020-08-26 22:35:18 +02:00
execute_process(COMMAND ${CMAKE_SOURCE_DIR}/dist/macos/macversion.sh OUTPUT_VARIABLE MACOS_VERSION_PACKAGE OUTPUT_STRIP_TRAILING_WHITESPACE)
2019-01-04 01:22:32 +01:00
add_custom_target(dmg
2019-11-14 21:23:50 +01:00
COMMAND /usr/local/opt/qt5/bin/macdeployqt strawberry.app
COMMAND ${CMAKE_SOURCE_DIR}/dist/macos/macdeploy.py strawberry.app
2020-08-26 22:35:18 +02:00
COMMAND create-dmg --volname strawberry --background "${CMAKE_SOURCE_DIR}/dist/macos/dmg_background.png" --app-drop-link 450 218 --icon strawberry.app 150 218 --window-size 600 450 strawberry-${STRAWBERRY_VERSION_PACKAGE}-${MACOS_VERSION_PACKAGE}.dmg strawberry.app
2019-01-04 01:22:32 +01:00
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)