diff options
author | Markus Goetz <markus@woboq.com> | 2018-04-03 20:27:20 +0300 |
---|---|---|
committer | Markus Goetz <markus@woboq.com> | 2018-04-03 20:27:20 +0300 |
commit | 75241c6cd6a480f9c12296fa97f8f4b2955d4529 (patch) | |
tree | 18b44d98674f3f1d8e4f9d6bf11b3267d08bc9cf /admin/osx | |
parent | fc4582ddf65e8e5464b43865a431e162b7484430 (diff) |
Remove admin/osx/sign_dmg.sh
We don't do dmh anymore.
Diffstat (limited to 'admin/osx')
-rwxr-xr-x | admin/osx/sign_dmg.sh | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/admin/osx/sign_dmg.sh b/admin/osx/sign_dmg.sh deleted file mode 100755 index c1f4ba7d5..000000000 --- a/admin/osx/sign_dmg.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh -x - -[ "$#" -lt 2 ] && echo "Usage: sign_dmg.sh <dmg> <identity>" && exit - -src_dmg="$1" -tmp_dmg="writable_$1" -signed_dmg="signed_$1" -identity="$2" - -QT_FMWKS=`basename ${TMP_APP}/Contents/Frameworks`/Qt* -QT_FMWK_VERSION="5" - -fix_frameworks() { - TMP_APP=$1 - QT_FMWK_PATH=$2 - QT_FMWKS=$3/Qt*.framework - - echo "Patching Qt frameworks..." - for FMWK in $QT_FMWKS; do - FMWK_NAME=`basename -s .framework $FMWK` - FMWK=`basename $FMWK` - FMWK_PATH="${TMP_APP}/Contents/Frameworks/${FMWK}" - mkdir -p "${FMWK_PATH}/Versions/${QT_FMWK_VERSION}/Resources/" - cp -avf "${QT_FMWK_PATH}/${FMWK}/Contents/Info.plist" "${FMWK_PATH}/Versions/${QT_FMWK_VERSION}/Resources" - (cd "${FMWK_PATH}" && ln -sf "Versions/${QT_FMWK_VERSION}/Resources" "Resources") - perl -pi -e "s/${FMWK_NAME}_debug/${FMWK_NAME}/" "${FMWK_PATH}/Resources/Info.plist" - done -} - -mount="/Volumes/$(basename "$src_dmg"|sed 's,-\([0-9]\)\(.*\),,')" -test -e "$tmp_dmg" && rm -rf "$tmp_dmg" -hdiutil convert "$src_dmg" -format UDRW -o "$tmp_dmg" -hdiutil attach "$tmp_dmg" -pushd "$mount" -fix_frameworks "$mount"/*.app `qmake -query QT_INSTALL_LIBS` "$mount"/*.app/Contents/Frameworks -codesign -s "$identity" --deep "$mount"/*.app -popd -diskutil eject "$mount" -test -e "$signed_dmg" && rm -rf "$signed_dmg" -hdiutil convert "$tmp_dmg" -format UDBZ -o "$signed_dmg" |