-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
31 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
# Create LMMS.app bundle using install_apple.sh | ||
# Create LMMS.app bundle using package_apple.sh | ||
# TODO: Port this script to CMake | ||
execute_process(COMMAND chmod u+x ${CPACK_BINARY_DIR}/install_apple.sh) | ||
execute_process(COMMAND chmod u+x ${CPACK_BINARY_DIR}/package_apple.sh) | ||
execute_process(COMMAND ${CPACK_BINARY_DIR}/install_apple.sh ${CPACK_TEMPORARY_INSTALL_DIRECTORY} RESULT_VARIABLE EXIT_CODE) | ||
if(NOT EXIT_CODE EQUAL 0) | ||
message(FATAL_ERROR "Execution of install_apple.sh failed") | ||
message(FATAL_ERROR "Execution of package_apple.sh failed") | ||
endif() | ||
|
||
# Create DMG | ||
message("Generating DMG") | ||
# REMOVE_RECURSE supresses missing file warnings | ||
file(REMOVE_RECURSE "${CPACK_DMG_FILE}") | ||
execute_process( | ||
COMMAND appdmg "${CPACK_BINARY_DIR}/package_apple.json" "${CPACK_DMG_FILE}" | ||
) | ||
# Create tiff from two pngs | ||
execute_process(COMMAND convert "${CPACK_DMG_BACKGROUND_PNGS}" "${CPACK_DMG_BACKGROUND_IMAGE}") |
Binary file not shown.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters