1
0

release.sh: store signing password

This commit is contained in:
ThomasV
2022-09-27 13:50:03 +02:00
parent b73b35705d
commit f8f77c14a2
3 changed files with 15 additions and 8 deletions

View File

@@ -1,6 +1,11 @@
#!/bin/bash
here=$(dirname "$0")
if [ ! $WIN_SIGNING_PASSWORD ]-, then
echo "password missing"
exit 1
fi
test -n "$here" -a -d "$here" || exit
cd $here
@@ -21,13 +26,10 @@ mkdir -p signed >/dev/null 2>&1
cd dist
echo "Found $(ls *.exe | wc -w) files to sign."
echo -n "Windows codesign passphrase:"
read -s password
for f in $(ls *.exe); do
echo "Signing $f..."
osslsigncode sign \
-pass $password\
-pass $WIN_SIGNING_PASSWORD\
-h sha256 \
-certs "$CERT_FILE" \
-key "$KEY_FILE" \