mirror of
https://github.com/godotengine/godot-build-scripts.git
synced 2026-01-01 09:48:47 +03:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aca4c84831 | ||
|
|
5cbd6f9d3a |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,5 +1,6 @@
|
||||
# User-specific configuration and signing key
|
||||
config.sh
|
||||
*.pfx
|
||||
*.pkcs12
|
||||
|
||||
# Generated by build scripts
|
||||
|
||||
@@ -7,18 +7,18 @@ set -e
|
||||
# For signing keystore and password.
|
||||
source ./config.sh
|
||||
|
||||
can_sign=0
|
||||
if [ ! -z "${SIGN_KEYSTORE}" ] && [ ! -z "${SIGN_PASSWORD}" ]; then
|
||||
can_sign=1
|
||||
can_sign_windows=0
|
||||
if [ ! -z "${SIGN_KEYSTORE}" ] && [ ! -z "${SIGN_PASSWORD}" ] && [[ $(type -P "osslsigncode") ]]; then
|
||||
can_sign_windows=1
|
||||
else
|
||||
echo "Disabling binary signing as config.sh does not define the required data."
|
||||
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."
|
||||
fi
|
||||
|
||||
sign_windows() {
|
||||
if [ $can_sign == 0 ]; then
|
||||
if [ $can_sign_windows == 0 ]; then
|
||||
return
|
||||
fi
|
||||
./osslsigncode -pkcs12 ${SIGN_KEYSTORE} -pass "${SIGN_PASSWORD}" -n "${SIGN_NAME}" -i "${SIGN_URL}" -t http://timestamp.comodoca.com -in $1 -out $1-signed
|
||||
osslsigncode sign -pkcs12 ${SIGN_KEYSTORE} -pass "${SIGN_PASSWORD}" -n "${SIGN_NAME}" -i "${SIGN_URL}" -t http://timestamp.comodoca.com -in $1 -out $1-signed
|
||||
mv $1-signed $1
|
||||
}
|
||||
|
||||
@@ -128,10 +128,13 @@ done
|
||||
if [ -z "${godot_version}" -o -z "${templates_version}" ]; then
|
||||
echo "Mandatory argument -v or -t missing."
|
||||
exit 1
|
||||
elif [[ "{$templates_version}" == *"-"* ]]; then
|
||||
echo "Templates version (-t) shouldn't contain '-'. It should use a dot to separate version from status."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export basedir=$(pwd)
|
||||
export webdir="${basedir}/web/${godot_version}"
|
||||
export webdir="${basedir}/web/${templates_version}"
|
||||
export reldir="${basedir}/releases/${godot_version}"
|
||||
export reldir_mono="${reldir}/mono"
|
||||
export tmpdir="${basedir}/tmp"
|
||||
|
||||
BIN
osslsigncode
BIN
osslsigncode
Binary file not shown.
Reference in New Issue
Block a user