We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentf8f3d89 commit6f9b3c1Copy full SHA for 6f9b3c1
scripts/build_windows_installer.sh
@@ -19,6 +19,7 @@ source "$(dirname "${BASH_SOURCE[0]}")/lib.sh"
19
agpl="${CODER_BUILD_AGPL:-0}"
20
output_path=""
21
version=""
22
+sign_windows="${CODER_SIGN_WINDOWS:-0}"
23
24
args="$(getopt -o"" -l agpl,output:,version: --"$@")"
25
evalset --"$args"
@@ -51,6 +52,11 @@ if [[ "$output_path" == "" ]]; then
51
52
error"--output is a required parameter"
53
fi
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
+
60
if [["$#"!= 1 ]];then
61
error"Exactly one argument must be provided to this script,$# were supplied"
62
@@ -125,3 +131,7 @@ popd
125
131
cp"$temp_dir/installer.exe""$output_path"
126
132
127
133
rm -rf"$temp_dir"
134
135
136
+execrelative ./sign_windows.sh"$output_path"1>&2
137