Apple Bundle fixes

This commit is contained in:
Tres Finocchiaro
2014-05-04 01:10:52 -04:00
parent 3d274078ce
commit bca86d9c1a
2 changed files with 3 additions and 1 deletions

View File

@@ -667,6 +667,8 @@ SET(MACOSX_BUNDLE_MIMETYPE "application/x-lmms-project")
CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/data/lmms.plist.in" "${CMAKE_INSTALL_PREFIX}/Info.plist")
CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/data/scripts/create_apple_bundle.sh.in" "${CMAKE_INSTALL_PREFIX}/create_apple_bundle.sh")
CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/data/scripts/create_apple_dmg.sh.in" "${CMAKE_INSTALL_PREFIX}/create_apple_dmg.sh")
# Add execute permissions to bundle script
FILE(COPY "${CMAKE_INSTALL_PREFIX}/create_apple_bundle.sh" DESTINATION "${CMAKE_INSTALL_PREFIX}/create_apple_bundle.sh" FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
#endif
SET(CPACK_SOURCE_GENERATOR "TBZ2")

View File

@@ -119,5 +119,5 @@ cp "$CMAKE_BUILD/Info.plist" "$APP/Contents/Info.plist"
# Done. Ready to build DMG
echo -e "\nFinished.\n\nPlease run \"create_apple_dmg.sh\" from the Desktop to build the installer.\n"
echo -e "Note: You can drag/drop it into this terminal window.)\n"
cp "CMAKE_INSTALL/create_apple_dmg.sh" "$HOME/Desktop/"
cp "$CMAKE_INSTALL/create_apple_dmg.sh" "$HOME/Desktop/"
chmod +x "$HOME/Desktop/create_apple_dmg.sh"