From 7ac402c224acd85b5b64532458d19c2238ae0f82 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sat, 30 Jun 2018 14:02:06 +0200 Subject: [PATCH] unsign: fetch signed files with wget --- contrib/build-wine/unsign.sh | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/contrib/build-wine/unsign.sh b/contrib/build-wine/unsign.sh index d17913402..c61259911 100755 --- a/contrib/build-wine/unsign.sh +++ b/contrib/build-wine/unsign.sh @@ -11,17 +11,20 @@ fi # exit if command fails set -e -mkdir -p stripped >/dev/null 2>&1 +rm -rf signed +mkdir -p signed >/dev/null 2>&1 +mkdir -p signed/stripped >/dev/null 2>&1 -cd signed +version=3.2.0 echo "Found $(ls *.exe | wc -w) files to verify." -for signed in $(ls *.exe); do - mine="../dist/$signed" - out="../stripped/$signed" +for mine in $(ls dist/*.exe); do + f=$(basename $mine) + wget https://download.electrum.org/$version/$f -O signed/$f + out="signed/stripped/$f" size=$( wc -c < $mine ) # Step 1: Remove PE signature from signed binary - osslsigncode remove-signature -in $signed -out $out > /dev/null 2>&1 + osslsigncode remove-signature -in signed/$f -out $out > /dev/null 2>&1 # Step 2: Remove checksum and padding from signed binary python3 <