Browse Source

Merge pull request #3074 from SomberNight/build_security1

build scripts: https
seed_v14
ThomasV 7 years ago
committed by GitHub
parent
commit
b2f029851a
  1. 2
      contrib/build-wine/build-electrum-git.sh
  2. 10
      contrib/build-wine/prepare-hw.sh
  3. 6
      contrib/build-wine/prepare-wine.sh
  4. 4
      contrib/make_locale

2
contrib/build-wine/build-electrum-git.sh

@ -1,7 +1,7 @@
#!/bin/bash
# You probably need to update only this link
ELECTRUM_GIT_URL=git://github.com/spesmilo/electrum.git
ELECTRUM_GIT_URL=https://github.com/spesmilo/electrum.git
BRANCH=master
NAME_ROOT=electrum
PYTHON_VERSION=3.5.4

10
contrib/build-wine/prepare-hw.sh

@ -1,8 +1,8 @@
#!/bin/bash
TREZOR_GIT_URL=git://github.com/trezor/python-trezor.git
KEEPKEY_GIT_URL=git://github.com/keepkey/python-keepkey.git
BTCHIP_GIT_URL=git://github.com/LedgerHQ/btchip-python.git
TREZOR_GIT_URL=https://github.com/trezor/python-trezor.git
KEEPKEY_GIT_URL=https://github.com/keepkey/python-keepkey.git
BTCHIP_GIT_URL=https://github.com/LedgerHQ/btchip-python.git
BRANCH=master
@ -20,8 +20,8 @@ set -e
cd tmp
# downoad mingw-get-setup.exe
#wget http://downloads.sourceforge.net/project/mingw/Installer/mingw-get-setup.exe
# download mingw-get-setup.exe
#wget https://downloads.sourceforge.net/project/mingw/Installer/mingw-get-setup.exe
#wine mingw-get-setup.exe
#echo "add c:\MinGW\bin to PATH using regedit" in HKEY_CURRENT_USER/Environment

6
contrib/build-wine/prepare-wine.sh

@ -1,7 +1,7 @@
#!/bin/bash
# Please update these carefully, some versions won't work under Wine
NSIS_URL=http://prdownloads.sourceforge.net/nsis/nsis-3.02.1-setup.exe?download
NSIS_URL=https://prdownloads.sourceforge.net/nsis/nsis-3.02.1-setup.exe?download
PYTHON_VERSION=3.5.4
## These settings probably don't need change
@ -49,7 +49,7 @@ $PYTHON -m pip install PyQt5
$PYTHON -m pip install pyinstaller==3.3
# Install ZBar
#wget -q -O zbar.exe "http://sourceforge.net/projects/zbar/files/zbar/0.10/zbar-0.10-setup.exe/download"
#wget -q -O zbar.exe "https://sourceforge.net/projects/zbar/files/zbar/0.10/zbar-0.10-setup.exe/download"
#wine zbar.exe
# install Cryptodome
@ -75,7 +75,7 @@ wget -q -O nsis.exe "$NSIS_URL"
wine nsis.exe
# Install UPX
#wget -O upx.zip "http://upx.sourceforge.net/download/upx308w.zip"
#wget -O upx.zip "https://downloads.sourceforge.net/project/upx/upx/3.08/upx308w.zip"
#unzip -o upx.zip
#cp upx*/upx.exe .

4
contrib/make_locale

@ -36,12 +36,12 @@ if crowdin_api_key:
requests.request('POST', url, files=files)
# Build translations
print('Build translations')
response = requests.request('GET', 'http://api.crowdin.com/api/project/' + crowdin_identifier + '/export?key=' + crowdin_api_key).content
response = requests.request('GET', 'https://api.crowdin.com/api/project/' + crowdin_identifier + '/export?key=' + crowdin_api_key).content
print(response)
# Download & unzip
print('Download translations')
s = requests.request('GET', 'http://crowdin.com/download/project/' + crowdin_identifier + '.zip').content
s = requests.request('GET', 'https://crowdin.com/download/project/' + crowdin_identifier + '.zip').content
zfobj = zipfile.ZipFile(io.BytesIO(s))
print('Unzip translations')

Loading…
Cancel
Save