Skip to content

Commit

Permalink
tool exists only for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicko committed Aug 2, 2023
1 parent d469476 commit fcb0e28
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 4 additions & 2 deletions default/scripts/system-resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@ 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
if [ ${ARCH} == 'darwin-arm64' ]; then
rcodesign sign ${OUTPUT_DIR}${INSTALL_PREFIX}/lib/libgtk-3.0.dylib
rcodesign sign ${OUTPUT_DIR}${INSTALL_PREFIX}/lib/libgdk-3.0.dylib
fi
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
8 changes: 6 additions & 2 deletions scripts/package-darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ 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)
if [ ${ARCH} == 'darwin-arm64' ]; then
rcodesign sign libexec/$(basename $binfile)
fi
cat >> $binfile << EOT
export QT_PLUGIN_PATH="\$release_topdir_abs/lib/qt5/plugins"
export QT_LOGGING_RULES="*=false"
Expand Down Expand Up @@ -222,6 +224,8 @@ EOT
chmod +x bin/yosys-config
fi
if [ ${PRELOAD} == 'True' ]; then
rcodesign sign lib/preload.o
if [ ${ARCH} == 'darwin-arm64' ]; then
rcodesign sign lib/preload.o
fi
fi
chmod -R u=rwX,go=rX *

0 comments on commit fcb0e28

Please sign in to comment.