File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 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"
1919agpl=" ${CODER_BUILD_AGPL:- 0} "
2020output_path=" "
2121version=" "
22+ sign_windows=" ${CODER_SIGN_WINDOWS:- 0} "
2223
2324args=" $( getopt -o " " -l agpl,output:,version: -- " $@ " ) "
2425eval set -- " $args "
@@ -51,6 +52,11 @@ if [[ "$output_path" == "" ]]; then
5152 error " --output is a required parameter"
5253fi
5354
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+
5460if [[ " $# " != 1 ]]; then
5561 error " Exactly one argument must be provided to this script, $# were supplied"
5662fi
125131cp " $temp_dir /installer.exe" " $output_path "
126132
127133rm -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