[Pkg-owncloud-commits] [owncloud-client] 11/20: Make sign_dmg.sh script fix frameworks correctly, resize disk image
Sandro Knauß
hefee-guest at moszumanska.debian.org
Fri Oct 24 20:08:13 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch sid
in repository owncloud-client.
commit 7dcbbb004663462d5adb00c206cb7a2ffc3f15eb
Author: Daniel Molkentin <danimo at owncloud.com>
Date: Thu Oct 9 18:37:32 2014 +0200
Make sign_dmg.sh script fix frameworks correctly, resize disk image
---
admin/osx/sign_dmg.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/admin/osx/sign_dmg.sh b/admin/osx/sign_dmg.sh
index c1f4ba7..46903b6 100755
--- a/admin/osx/sign_dmg.sh
+++ b/admin/osx/sign_dmg.sh
@@ -23,6 +23,8 @@ fix_frameworks() {
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")
+ (cd "${FMWK_PATH}" && ln -sf "Versions/${QT_FMWK_VERSION}/${FMWK_NAME}")
+ (cd "${FMWK_PATH}/Versions" && ln -sf "${QT_FMWK_VERSION}" "Current")
perl -pi -e "s/${FMWK_NAME}_debug/${FMWK_NAME}/" "${FMWK_PATH}/Resources/Info.plist"
done
}
@@ -30,6 +32,9 @@ fix_frameworks() {
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"
+#signing adds data, add a bit of space
+sectors=$(hdiutil resize -limits "$tmp_dmg" |grep -v cur|cut -f2)
+hdiutil resize -sectors $(($sectors+(51200))) "$tmp_dmg"
hdiutil attach "$tmp_dmg"
pushd "$mount"
fix_frameworks "$mount"/*.app `qmake -query QT_INSTALL_LIBS` "$mount"/*.app/Contents/Frameworks
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list