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 <