mirror of
https://github.com/godotengine/godot-build-scripts.git
synced 2026-01-04 02:09:44 +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
|
# User-specific configuration and signing key
|
||||||
config.sh
|
config.sh
|
||||||
|
*.pfx
|
||||||
*.pkcs12
|
*.pkcs12
|
||||||
|
|
||||||
# Generated by build scripts
|
# Generated by build scripts
|
||||||
|
|||||||
@@ -7,18 +7,18 @@ set -e
|
|||||||
# For signing keystore and password.
|
# For signing keystore and password.
|
||||||
source ./config.sh
|
source ./config.sh
|
||||||
|
|
||||||
can_sign=0
|
can_sign_windows=0
|
||||||
if [ ! -z "${SIGN_KEYSTORE}" ] && [ ! -z "${SIGN_PASSWORD}" ]; then
|
if [ ! -z "${SIGN_KEYSTORE}" ] && [ ! -z "${SIGN_PASSWORD}" ] && [[ $(type -P "osslsigncode") ]]; then
|
||||||
can_sign=1
|
can_sign_windows=1
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
sign_windows() {
|
sign_windows() {
|
||||||
if [ $can_sign == 0 ]; then
|
if [ $can_sign_windows == 0 ]; then
|
||||||
return
|
return
|
||||||
fi
|
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
|
mv $1-signed $1
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -128,10 +128,13 @@ done
|
|||||||
if [ -z "${godot_version}" -o -z "${templates_version}" ]; then
|
if [ -z "${godot_version}" -o -z "${templates_version}" ]; then
|
||||||
echo "Mandatory argument -v or -t missing."
|
echo "Mandatory argument -v or -t missing."
|
||||||
exit 1
|
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
|
fi
|
||||||
|
|
||||||
export basedir=$(pwd)
|
export basedir=$(pwd)
|
||||||
export webdir="${basedir}/web/${godot_version}"
|
export webdir="${basedir}/web/${templates_version}"
|
||||||
export reldir="${basedir}/releases/${godot_version}"
|
export reldir="${basedir}/releases/${godot_version}"
|
||||||
export reldir_mono="${reldir}/mono"
|
export reldir_mono="${reldir}/mono"
|
||||||
export tmpdir="${basedir}/tmp"
|
export tmpdir="${basedir}/tmp"
|
||||||
|
|||||||
BIN
osslsigncode
BIN
osslsigncode
Binary file not shown.
Reference in New Issue
Block a user