Skip to content

Commit

Permalink
fix darwin code signing
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicko committed Aug 2, 2023
1 parent 06e397f commit d469476
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions default/scripts/system-resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ if [ ${ARCH_BASE} == 'darwin' ]; then
cp /opt/local/lib/libgdk-3.0.dylib ${OUTPUT_DIR}${INSTALL_PREFIX}/lib/.
dylibbundler -of -b -x ${OUTPUT_DIR}${INSTALL_PREFIX}/lib/libgtk-3.0.dylib -p @executable_path/../lib -d ${OUTPUT_DIR}${INSTALL_PREFIX}/lib
install_name_tool -id @executable_path/../lib/libgtk-3.0.dylib ${OUTPUT_DIR}${INSTALL_PREFIX}/lib/libgtk-3.0.dylib
rcodesign sign ${OUTPUT_DIR}${INSTALL_PREFIX}/lib/libgtk-3.0.dylib
dylibbundler -of -b -x ${OUTPUT_DIR}${INSTALL_PREFIX}/lib/libgdk-3.0.dylib -p @executable_path/../lib -d ${OUTPUT_DIR}${INSTALL_PREFIX}/lib
install_name_tool -id @executable_path/../lib/libgdk-3.0.dylib ${OUTPUT_DIR}${INSTALL_PREFIX}/lib/libgdk-3.0.dylib
rcodesign sign ${OUTPUT_DIR}${INSTALL_PREFIX}/lib/libgdk-3.0.dylib
mkdir -p ${OUTPUT_DIR}${INSTALL_PREFIX}/share/glib-2.0
mkdir -p ${OUTPUT_DIR}${INSTALL_PREFIX}/share/mime
mkdir -p ${OUTPUT_DIR}${INSTALL_PREFIX}/share/icons
Expand Down
1 change: 1 addition & 0 deletions scripts/package-darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ EOT
fi
if [ ! -z "$(otool -L libexec/$(basename $binfile) | grep QtCore)" ]; then
install_name_tool -add_rpath @executable_path/../Frameworks libexec/$(basename $binfile)
rcodesign sign libexec/$(basename $binfile)
cat >> $binfile << EOT
export QT_PLUGIN_PATH="\$release_topdir_abs/lib/qt5/plugins"
export QT_LOGGING_RULES="*=false"
Expand Down

0 comments on commit d469476

Please sign in to comment.