release.sh: store signing password
This commit is contained in:
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user