twine build - unsign.sh: a bit cleaner output; and no assertion failure for setup.exe - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 38c97c306afe5ac6d6c086b2775997f2388989d9
DIR parent fe16af2ffada73f84b1f62f8301641ce0794d818
HTML Author: SomberNight <somber.night@protonmail.com>
Date: Sat, 30 Jun 2018 15:55:33 +0200
wine build - unsign.sh: a bit cleaner output; and no assertion failure for setup.exe
Diffstat:
M contrib/build-wine/unsign.sh | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
DIR diff --git a/contrib/build-wine/unsign.sh b/contrib/build-wine/unsign.sh
t@@ -20,8 +20,10 @@ version=`python3 -c "import electrum; print(electrum.version.ELECTRUM_VERSION)"`
echo "Found $(ls dist/*.exe | wc -w) files to verify."
for mine in $(ls dist/*.exe); do
+ echo "---------------"
f=$(basename $mine)
- wget https://download.electrum.org/$version/$f -O signed/$f
+ echo "Downloading https://download.electrum.org/$version/$f"
+ wget -q 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
t@@ -39,7 +41,8 @@ for b in range(4):
l = len(binary)
n = l - size
if n > 0:
- assert binary[-n:] == bytearray(n)
+ if binary[-n:] != bytearray(n):
+ print('expecting failure for', str(pe_file))
binary = binary[:size]
with open(pe_file, "wb") as f:
f.write(binary)