Skip to content

Commit 1a027b0

Browse files
stirbykylecarbs
andauthored
chore: sign the windows installer (coder#14353) (coder#14368)
(cherry picked from commit 6f9b3c1) Co-authored-by: Kyle Carberry <kyle@coder.com>
1 parent bddf0bf commit 1a027b0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/build_windows_installer.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ source "$(dirname "${BASH_SOURCE[0]}")/lib.sh"
1919
agpl="${CODER_BUILD_AGPL:-0}"
2020
output_path=""
2121
version=""
22+
sign_windows="${CODER_SIGN_WINDOWS:-0}"
2223

2324
args="$(getopt -o "" -l agpl,output:,version: -- "$@")"
2425
eval set -- "$args"
@@ -51,6 +52,11 @@ if [[ "$output_path" == "" ]]; then
5152
error "--output is a required parameter"
5253
fi
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+
5460
if [[ "$#" != 1 ]]; then
5561
error "Exactly one argument must be provided to this script, $# were supplied"
5662
fi
@@ -125,3 +131,7 @@ popd
125131
cp "$temp_dir/installer.exe" "$output_path"
126132

127133
rm -rf "$temp_dir"
134+
135+
if [[ "$sign_windows" == 1 ]]; then
136+
execrelative ./sign_windows.sh "$output_path" 1>&2
137+
fi

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy