1
0

Windows build scripts: Read codesign passphrase. Lazy check if unsigned binaries are there.

This commit is contained in:
ThomasV
2022-05-27 11:07:32 +02:00
parent 1238f645aa
commit 2f124deb07
2 changed files with 10 additions and 1 deletions

View File

@@ -20,9 +20,14 @@ mkdir -p signed >/dev/null 2>&1
cd dist cd dist
echo "Found $(ls *.exe | wc -w) files to sign." echo "Found $(ls *.exe | wc -w) files to sign."
echo -n "Windows codesign passphrase:"
read -s password
for f in $(ls *.exe); do for f in $(ls *.exe); do
echo "Signing $f..." echo "Signing $f..."
osslsigncode sign \ osslsigncode sign \
-pass $password\
-h sha256 \ -h sha256 \
-certs "$CERT_FILE" \ -certs "$CERT_FILE" \
-key "$KEY_FILE" \ -key "$KEY_FILE" \

View File

@@ -105,7 +105,11 @@ if test -f "dist/$win1"; then
info "file exists: $win1" info "file exists: $win1"
else else
pushd . pushd .
./contrib/build-wine/build.sh if test -f "contrib/build-wine/dist/$win1"; then
info "unsigned file exists: $win1"
else
./contrib/build-wine/build.sh
fi
cd contrib/build-wine/ cd contrib/build-wine/
if [ ! -z "$RELEASEMANAGER" ] ; then if [ ! -z "$RELEASEMANAGER" ] ; then
./sign.sh ./sign.sh