diff --git a/default/scripts/system-resources.sh b/default/scripts/system-resources.sh index 70887be..ee87884 100644 --- a/default/scripts/system-resources.sh +++ b/default/scripts/system-resources.sh @@ -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 diff --git a/scripts/package-darwin.sh b/scripts/package-darwin.sh index 484e08a..0704580 100644 --- a/scripts/package-darwin.sh +++ b/scripts/package-darwin.sh @@ -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" @@ -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 *