You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.dmg creates after build but has wrong window size.
If I execute script without cmake everythng works correctly.
Difference between run script via cmake and run script via terminal is that when I run script via terminal UI windows creates for create-dmg but via cmake - not.
The text was updated successfully, but these errors were encountered:
I guess the problem is because script need UI to be shown.
how to reproduce:
in cmake:
add_custom_command( TARGET ${PROJECT_NAME} POST_BUILD COMMAND rm -rf ${DMG_FILE_PATH} COMMAND ${CMAKE_SOURCE_DIR}/tools/create_dmg.sh ${APP} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Packing build...")
create_dmg.sh file:
bundle_path=$1;
bundle_name="$(basename ${bundle_path} .app)"
bundle_arch=$(lipo -archs ${bundle_path}/Contents/MacOS/${bundle_name})
disk_image_name="${bundle_name}-${bundle_arch}.dmg";
create-dmg --volname "app installer" --window-size 500 300 --window-pos 200 120 --app-drop-link 300 110 --icon ${bundle_path} 50 112 --icon-size 120 "${disk_image_name}" ${bundle_path};
.dmg creates after build but has wrong window size.
If I execute script without cmake everythng works correctly.
Difference between run script via cmake and run script via terminal is that when I run script via terminal UI windows creates for create-dmg but via cmake - not.
The text was updated successfully, but these errors were encountered: