File indexing completed on 2024-05-19 04:29:55
0001 #!/usr/bin/env zsh 0002 # 0003 # SPDX-License-Identifier: GPL-3.0-or-later 0004 # 0005 0006 if test -z $BUILDROOT; then 0007 echo "ERROR: BUILDROOT env not set, exiting!" 0008 echo "\t Must point to the root of the buildfiles as stated in 3rdparty Readme" 0009 exit 1 0010 fi 0011 0012 BUILDROOT="${BUILDROOT%/}" 0013 echo "BUILDROOT set to ${BUILDROOT}" 0014 0015 if [[ -z "${KIS_SRC_DIR}" ]]; then 0016 KIS_SRC_DIR=${BUILDROOT}/krita 0017 fi 0018 if [[ -z "${KIS_BUILD_DIR}" ]]; then 0019 KIS_BUILD_DIR=${BUILDROOT}/kisbuild 0020 fi 0021 0022 0023 ENTITLEMENTS="sandboxdev-entitlements.plist" 0024 if [[ -n "${1}" ]]; then 0025 ENTITLEMENTS="entitlements.plist" 0026 fi 0027 0028 codesign_bin() { 0029 codesign --options runtime --timestamp -f -s "${APPLEDEV_IDAPP}" \ 0030 --entitlements "${KIS_BUILD_DIR}/packaging/macos/${2}" "${1}" 0031 } 0032 0033 0034 codesign_sandbox() { 0035 echo "${1}" 0036 codesign_bin "${1}" "${2}" 0037 codesign -d --entitlements - "${1}" 0038 } 0039 0040 0041 # program starts 0042 # codesign_sandbox "${BUILDROOT}/i/bin/krita.app/Contents/container-migration.plist" 0043 codesign_sandbox "${BUILDROOT}/i/bin/krita.app/Contents/MacOS/ffprobe" "sandboxdev_sub-entitlements.plist" 0044 codesign_sandbox "${BUILDROOT}/i/bin/krita.app/Contents/MacOS/ffmpeg" "sandboxdev_sub-entitlements.plist" 0045 codesign_sandbox "${BUILDROOT}/i/bin/krita.app/Contents/MacOS/krita" "${ENTITLEMENTS}" 0046 0047 echo "codesign end."