Skip to content

Commit 7495901

Browse files
committed
macOS add licenses folder in BUNDLE/Contents/Resources/licenses
1 parent 33445de commit 7495901

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

misc/MacQetDeploy.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ QET_ELMT_DIR="${current_dir}/elements/"
191191
QET_TBT_DIR="${current_dir}/titleblocks/"
192192
QET_LANG_DIR="${current_dir}/lang/"
193193
QET_FONTS_DIR="${current_dir}/fonts/"
194+
QET_LICENSES_DIR="${current_dir}/licenses/"
194195

195196
# Add new folder for Qt dialog translation see
196197
## see <https://download.tuxfamily.org/qet/Qt_lang/>.
@@ -228,6 +229,11 @@ if [ -d "${QET_FONTS_DIR}" ]; then
228229

229230
fi
230231

232+
if [ -d "${QET_LICENSES_DIR}" ]; then
233+
echo "Copying licenses in the bundle..."
234+
mkdir $BUNDLE/Contents/Resources/licenses
235+
cp -R ${QET_LICENSES_DIR} $BUNDLE/Contents/Resources/licenses
236+
fi
231237
### create disk image ###############################################
232238

233239
echo

misc/MacQetDeploy_arm64.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ QET_TBT_DIR="${current_dir}/titleblocks/"
188188
QET_LANG_DIR="${current_dir}/lang/"
189189
QET_EXAMPLES_DIR="${current_dir}/examples/"
190190
QET_FONTS_DIR="${current_dir}/fonts/"
191+
QET_LICENSES_DIR="${current_dir}/licenses/"
191192

192193

193194
# Add new folder for Qt dialog translation see
@@ -232,6 +233,13 @@ if [ -d "${QET_FONTS_DIR}" ]; then
232233
cp ${current_dir}/fonts/*.ttf $BUNDLE/Contents/Resources/fonts
233234

234235
fi
236+
237+
if [ -d "${QET_LICENSES_DIR}" ]; then
238+
echo "Copying licenses in the bundle..."
239+
mkdir $BUNDLE/Contents/Resources/licenses
240+
cp -R ${QET_LICENSES_DIR} $BUNDLE/Contents/Resources/licenses
241+
fi
242+
235243
codesign --force --deep --sign --timestamp -s "Developer ID Application: Laurent TRINQUES (Y73WZ6WZ5X)" --options=runtime $BUNDLE
236244
### create zip tarball ###############################################
237245

0 commit comments

Comments
 (0)