File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ source "$(dirname "${BASH_SOURCE[0]}")/lib.sh"
19
19
agpl=" ${CODER_BUILD_AGPL:- 0} "
20
20
output_path=" "
21
21
version=" "
22
+ sign_windows=" ${CODER_SIGN_WINDOWS:- 0} "
22
23
23
24
args=" $( getopt -o " " -l agpl,output:,version: -- " $@ " ) "
24
25
eval set -- " $args "
@@ -51,6 +52,11 @@ if [[ "$output_path" == "" ]]; then
51
52
error " --output is a required parameter"
52
53
fi
53
54
55
+ if [[ " $sign_windows " == 1 ]]; then
56
+ dependencies java
57
+ requiredenvs JSIGN_PATH EV_KEYSTORE EV_KEY EV_CERTIFICATE_PATH EV_TSA_URL GCLOUD_ACCESS_TOKEN
58
+ fi
59
+
54
60
if [[ " $# " != 1 ]]; then
55
61
error " Exactly one argument must be provided to this script, $# were supplied"
56
62
fi
125
131
cp " $temp_dir /installer.exe" " $output_path "
126
132
127
133
rm -rf " $temp_dir "
134
+
135
+ if [[ " $sign_windows " == 1 ]]; then
136
+ execrelative ./sign_windows.sh " $output_path " 1>&2
137
+ fi
You can’t perform that action at this time.
0 commit comments