From d3276ee950782bdbec362ceb16daa8fff666cf1b Mon Sep 17 00:00:00 2001 From: SomberNight Date: Thu, 17 Jun 2021 12:12:11 +0200 Subject: [PATCH] build-wine/unsign.sh: allow using before files are uploaded publicly --- contrib/build-wine/unsign.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/contrib/build-wine/unsign.sh b/contrib/build-wine/unsign.sh index 411858f06..3cc8bb463 100755 --- a/contrib/build-wine/unsign.sh +++ b/contrib/build-wine/unsign.sh @@ -21,8 +21,12 @@ echo "Found $(ls dist/*.exe | wc -w) files to verify." for mine in $(ls dist/*.exe); do echo "---------------" f=$(basename $mine) - echo "Downloading https://download.electrum.org/$version/$f" - wget -q https://download.electrum.org/$version/$f -O signed/$f + if test -f signed/$f; then + echo "Found file at signed/$f" + else + echo "Downloading https://download.electrum.org/$version/$f" + wget -q https://download.electrum.org/$version/$f -O signed/$f + fi out="signed/stripped/$f" # Remove PE signature from signed binary osslsigncode remove-signature -in signed/$f -out $out > /dev/null 2>&1