URI: 
       tunsign: fetch signed files with wget - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 7ac402c224acd85b5b64532458d19c2238ae0f82
   DIR parent 0119ab9ee1c4b07255442c7c91a7119ca989b64c
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Sat, 30 Jun 2018 14:02:06 +0200
       
       unsign: fetch signed files with wget
       
       Diffstat:
         M contrib/build-wine/unsign.sh        |      21 ++++++++++++---------
       
       1 file changed, 12 insertions(+), 9 deletions(-)
       ---
   DIR diff --git a/contrib/build-wine/unsign.sh b/contrib/build-wine/unsign.sh
       t@@ -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 <<EOF
        pe_file = "$out"
       t@@ -42,9 +45,9 @@ with open(pe_file, "wb") as f:
        EOF
            chmod +x $out
            if [ ! $(diff $out $mine) ]; then
       -        echo "Success: $signed"
       -        #gpg --sign --armor --detach $signed
       +        echo "Success: $f"
       +        gpg --sign --armor --detach signed/$f
            else
       -        echo "Failure: $signed"
       +        echo "Failure: $f"
            fi
        done