Skip to content

Commit

Permalink
fix #45
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Apr 29, 2020
1 parent a3ec64b commit dc9b0f1
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
11 changes: 11 additions & 0 deletions qgis_deps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ skip this and go to build QGIS step
2. Run `./qgis_deps.bash`
3. Enjoy

Upload deps to qgis.org
------------------
For this you need to have QGIS signing certificate, and ssh access to qgis.org
Usually this is done on build server and it is not necessary for development of
the qgis-deps pacakges

1. Build QGIS-Deps
2. Run `sign_deps.bash`
3. Run `create_package.bash`
4. Run `upload_to_qgis2.bash`

Build QGIS
-----------------------

Expand Down
38 changes: 38 additions & 0 deletions qgis_deps/sign_deps.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

PATH_TO_SIGN=$1
IDENTITY_FILE=$DIR/../../sign_identity.txt
KEYCHAIN_FILE=$DIR/../../qgis.keychain-db

if [ ! -f "$IDENTITY_FILE" ]; then
echo "Missing IDENTITY_FILE $IDENTITY_FILE"
exit 1
fi

if [ ! -f "$KEYCHAIN_FILE" ]; then
echo "Missing KEYCHAIN_FILE $KEYCHAIN_FILE"
exit 1
fi

if [ "X$PATH_TO_SIGN" == "X" ]; then
echo "you need to specify PATH_TO_SIGN"
exit 1
fi

IDENTITY="$(cat $IDENTITY_FILE)"

echo "Signing binaries in $PATH_TO_SIGN"
LIBS1=`find $PATH_TO_SIGN -type f -name "*.so"`
LIBS2=`find $PATH_TO_SIGN -type f -name "*.dylib"`
BINS=`find $PATH_TO_SIGN -type f ! -name "*.*"`
LIBS="$BINS $LIBS1 $LIBS2"
for LIB in $LIBS; do
if file $LIB | grep -q Mach-O
then
codesign -s $IDENTITY -v --deep --keychain $KEYCHAIN_FILE $LIB
fi
done

echo "Signing done"

0 comments on commit dc9b0f1

Please sign in to comment.