File tree Expand file tree Collapse file tree 4 files changed +50
-3
lines changed Expand file tree Collapse file tree 4 files changed +50
-3
lines changed Original file line number Diff line number Diff line change 1
- # Private signing key
1
+ # User-specific configuration and signing key
2
+ config.sh
2
3
* .pkcs12
3
4
4
5
# Generated by build scripts
Original file line number Diff line number Diff line change @@ -9,8 +9,21 @@ if [ -z $1 ]; then
9
9
exit 1
10
10
fi
11
11
12
+ # For signing keystore and password.
13
+ source ./config.sh
14
+
15
+ can_sign=0
16
+ if [ ! -z " ${SIGN_KEYSTORE} " ] && [ ! -z " ${SIGN_PASSWORD} " ]; then
17
+ can_sign=1
18
+ else
19
+ echo " Disabling binary signing as config.sh does not define the required data."
20
+ fi
21
+
12
22
function sign {
13
- ./osslsigncode -pkcs12 REDACTED.pkcs12 -pass " REDACTED" -n " Godot Game Engine" -i " https://godotengine.org" -t http://timestamp.comodoca.com -in $1 -out $1 -signed
23
+ if [ $can_sign == 0 ]; then
24
+ return
25
+ fi
26
+ ./osslsigncode -pkcs12 ${SIGN_KEYSTORE} -pass " ${SIGN_PASSWORD} " -n " ${SIGN_NAME} " -i " ${SIGN_URL} " -t http://timestamp.comodoca.com -in $1 -out $1 -signed
14
27
mv $1 -signed $1
15
28
}
16
29
Original file line number Diff line number Diff line change 4
4
5
5
OPTIND=1
6
6
7
- registry=" registry.prehensile-tales.com"
7
+ # For default registry.
8
+ if [ ! -e config.sh ]; then
9
+ echo " No config.sh, copying default values from config.sh.in."
10
+ cp config.sh.in config.sh
11
+ fi
12
+ source ./config.sh
13
+
14
+ registry=" ${REGISTRY} "
8
15
username=" "
9
16
password=" "
10
17
godot_version=" "
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Configuration file for user-specific details.
4
+ # This file is gitignore'd and will be sourced by build scripts.
5
+
6
+ # Registry for build containers.
7
+ # The default registry is the one used for official Godot builds.
8
+ # Note that some of its images are private and only accessible to selected
9
+ # contributors.
10
+ # You can build your own registry with scripts at
11
+ # https://github.com/godotengine/build-containers
12
+ export REGISTRY=" registry.prehensile-tales.com"
13
+
14
+ # Set up your own signing keystore and relevant details below.
15
+ # If you do not fill all SIGN_* fields, signing will be skipped.
16
+
17
+ # Path to pkcs12 archive.
18
+ export SIGN_KEYSTORE=" "
19
+
20
+ # Password for the private key.
21
+ export SIGN_PASSWORD=" "
22
+
23
+ # Name and URL of the signed application.
24
+ # Use your own when making a thirdparty build.
25
+ export SIGN_NAME=" "
26
+ export SIGN_URL=" "
You can’t perform that action at this time.
0 commit comments