Skip to content

Commit 840f93b

Browse files
author
nate smith
committed
allow debugging output
1 parent f98e7e4 commit 840f93b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

script/sign-windows-executable.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ curl \
77
-H "Authorization: token $DESKTOP_CERT_TOKEN" \
88
-H "Accept: application/vnd.github.v3.raw" \
99
--output windows-certificate.pfx \
10-
--silent \
10+
#--silent \
1111
https://api.github.com/repos/desktop/desktop-secrets/contents/windows-certificate.pfx
1212

1313
PROGRAM_NAME="GitHub CLI"
1414

1515
# Convert private key to the expected format
1616
openssl pkcs12 -in windows-certificate.pfx -nocerts -nodes -out private-key.pem -passin pass:${GITHUB_CERT_PASSWORD}
17-
openssl rsa -in private-key.pem -outform PVK -pvk-none -out private-key.pvk 2>/dev/null # Always writes to STDERR
17+
openssl rsa -in private-key.pem -outform PVK -pvk-none -out private-key.pvk # 2>/dev/null # Always writes to STDERR
1818

1919
# Convert certificate chain into the expected format
2020
openssl pkcs12 -in windows-certificate.pfx -nokeys -nodes -out certificate.pem -passin pass:${GITHUB_CERT_PASSWORD}
@@ -26,5 +26,5 @@ signcode \
2626
-n $PROGRAM_NAME \
2727
-t http://timestamp.digicert.com \
2828
-a sha256 \
29-
$EXECUTABLE_PATH \
30-
1> /dev/null # STDOUT a little bit chatty here, with multiple lines
29+
$EXECUTABLE_PATH # \
30+
# 1 > /dev/null # STDOUT a little bit chatty here, with multiple lines

0 commit comments

Comments
 (0)