Skip to content

Commit 6ebf52f

Browse files
authored
Merge pull request #53 from godotengine/osslsigncode-from-PATH
2 parents 720b0fe + 8adfdd0 commit 6ebf52f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

build-release.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ set -e
77
# For signing keystore and password.
88
source ./config.sh
99

10-
can_sign=0
11-
if [ ! -z "${SIGN_KEYSTORE}" ] && [ ! -z "${SIGN_PASSWORD}" ]; then
12-
can_sign=1
10+
can_sign_windows=0
11+
if [ ! -z "${SIGN_KEYSTORE}" ] && [ ! -z "${SIGN_PASSWORD}" ] && [[ $(type -P "osslsigncode") ]]; then
12+
can_sign_windows=1
1313
else
14-
echo "Disabling binary signing as config.sh does not define the required data."
14+
echo "Disabling Windows binary signing as config.sh does not define the required data (SIGN_KEYSTORE, SIGN_PASSWORD), or osslsigncode can't be found in PATH."
1515
fi
1616

1717
sign_windows() {
18-
if [ $can_sign == 0 ]; then
18+
if [ $can_sign_windows == 0 ]; then
1919
return
2020
fi
21-
./osslsigncode -pkcs12 ${SIGN_KEYSTORE} -pass "${SIGN_PASSWORD}" -n "${SIGN_NAME}" -i "${SIGN_URL}" -t http://timestamp.comodoca.com -in $1 -out $1-signed
21+
osslsigncode sign -pkcs12 ${SIGN_KEYSTORE} -pass "${SIGN_PASSWORD}" -n "${SIGN_NAME}" -i "${SIGN_URL}" -t http://timestamp.comodoca.com -in $1 -out $1-signed
2222
mv $1-signed $1
2323
}
2424

osslsigncode

-1.94 MB
Binary file not shown.

0 commit comments

Comments
 (0)