From 7495901d07dafb5d2b6c2fe654181b8f1a9907df Mon Sep 17 00:00:00 2001 From: Laurent Trinques Date: Sat, 31 May 2025 12:51:23 +0200 Subject: [PATCH] macOS add licenses folder in BUNDLE/Contents/Resources/licenses --- misc/MacQetDeploy.sh | 6 ++++++ misc/MacQetDeploy_arm64.sh | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/misc/MacQetDeploy.sh b/misc/MacQetDeploy.sh index 37c02bd7e..04f0b6e82 100644 --- a/misc/MacQetDeploy.sh +++ b/misc/MacQetDeploy.sh @@ -191,6 +191,7 @@ QET_ELMT_DIR="${current_dir}/elements/" QET_TBT_DIR="${current_dir}/titleblocks/" QET_LANG_DIR="${current_dir}/lang/" QET_FONTS_DIR="${current_dir}/fonts/" +QET_LICENSES_DIR="${current_dir}/licenses/" # Add new folder for Qt dialog translation see ## see . @@ -228,6 +229,11 @@ if [ -d "${QET_FONTS_DIR}" ]; then fi +if [ -d "${QET_LICENSES_DIR}" ]; then + echo "Copying licenses in the bundle..." + mkdir $BUNDLE/Contents/Resources/licenses + cp -R ${QET_LICENSES_DIR} $BUNDLE/Contents/Resources/licenses +fi ### create disk image ############################################### echo diff --git a/misc/MacQetDeploy_arm64.sh b/misc/MacQetDeploy_arm64.sh index 1c360b240..a6e2ff5b9 100644 --- a/misc/MacQetDeploy_arm64.sh +++ b/misc/MacQetDeploy_arm64.sh @@ -188,6 +188,7 @@ QET_TBT_DIR="${current_dir}/titleblocks/" QET_LANG_DIR="${current_dir}/lang/" QET_EXAMPLES_DIR="${current_dir}/examples/" QET_FONTS_DIR="${current_dir}/fonts/" +QET_LICENSES_DIR="${current_dir}/licenses/" # Add new folder for Qt dialog translation see @@ -232,6 +233,13 @@ if [ -d "${QET_FONTS_DIR}" ]; then cp ${current_dir}/fonts/*.ttf $BUNDLE/Contents/Resources/fonts fi + +if [ -d "${QET_LICENSES_DIR}" ]; then + echo "Copying licenses in the bundle..." + mkdir $BUNDLE/Contents/Resources/licenses + cp -R ${QET_LICENSES_DIR} $BUNDLE/Contents/Resources/licenses +fi + codesign --force --deep --sign --timestamp -s "Developer ID Application: Laurent TRINQUES (Y73WZ6WZ5X)" --options=runtime $BUNDLE ### create zip tarball ###############################################