Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sign Qt based application
#!/bin/sh
if [ ! "$3" ]; then
echo $0 QTPREFIX APP INDENTIFY
exit 1
fi
prefix=$1
app=$2
id=$3
echo $prefix $app $id
for i in $2/Contents/Frameworks/*.framework; do
j=`basename $i`
cp $prefix/lib/$j/Contents/Info.plist $i/Resources
codesign -s "$3" $i
done
find KoushuServer.app/ -name '*.dylib' -print0|xargs -0 -n1 codesign -s "$3"
codesign -s "$3" "$app"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment