-
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.
Refactor macOS deployment structure and update icon handling
- Loading branch information
Showing
7 changed files
with
58 additions
and
34 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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Include the InstallRequiredSystemLibraries module. | ||
include(InstallRequiredSystemLibraries) | ||
|
||
# Set the CPack variables. | ||
set(CPACK_PACKAGE_NAME "${PRODUCT}") | ||
set(CPACK_PACKAGE_VERSION "${VERSION}") | ||
set(CPACK_PACKAGE_VERSION_MAJOR "1") | ||
set(CPACK_PACKAGE_VERSION_MINOR "0") | ||
set(CPACK_PACKAGE_VERSION_PATCH "0") | ||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${DESCRIPTION}") | ||
set(CPACK_PACKAGE_VENDOR "${PRODUCT}") | ||
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}") | ||
|
||
# Set package generator to Apple Disk Image. | ||
set(CPACK_GENERATOR "DragNDrop") | ||
|
||
# Include the CPack module. | ||
include(CPack) | ||
|
||
# Set the CPack variables for the Apple Disk Image package. | ||
set(CPACK_DMG_VOLUME_NAME "${PRODUCT}") | ||
|
||
# Specify the Qt components to include in the package. | ||
set(CPACK_COMPONENTS_ALL Libraries Application) | ||
|
||
# Install the executable to the temporary directory | ||
install(DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PRODUCT}.app" DESTINATION "/Applications/") |
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,12 @@ | |
set -e | ||
|
||
# Define the input PNG file and output ICNS file | ||
INPUT_PNG="../res/workflow.png" | ||
OUTPUT_DIR="../res/" | ||
INPUT_PNG="../../res/workflow.png" | ||
OUTPUT_DIR="./" | ||
|
||
# Create the iconset directory | ||
ICONSET_DIR="workflow.iconset" | ||
ICONSET_ICNS="workflow.icns" | ||
ICONSET_DIR="app.iconset" | ||
ICONSET_ICNS="app.icns" | ||
mkdir -p $ICONSET_DIR | ||
|
||
# Generate the various icon sizes | ||
|
@@ -27,10 +27,7 @@ sips -z 1024 1024 $INPUT_PNG --out $ICONSET_DIR/[email protected] | |
# Convert the iconset to an ICNS file | ||
iconutil -c icns $ICONSET_DIR | ||
|
||
# Move the ICNS file to the desired location | ||
mv $ICONSET_ICNS $OUTPUT_DIR | ||
|
||
# Clean up the iconset directory | ||
rm -r $ICONSET_DIR | ||
rm -rf $ICONSET_DIR | ||
|
||
echo "ICNS file created at $OUTPUT_DIR" |