Skip to content

Instantly share code, notes, and snippets.

@informationsea
Created February 15, 2014 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save informationsea/9022020 to your computer and use it in GitHub Desktop.
Save informationsea/9022020 to your computer and use it in GitHub Desktop.
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