mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-04 04:45:16 +00:00
wine build: dedupe PYTHON_VERSION
This commit is contained in:
parent
f59a4f85db
commit
762082e13d
4 changed files with 8 additions and 9 deletions
|
@ -1,14 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
NAME_ROOT=electrum
|
NAME_ROOT=electrum
|
||||||
PYTHON_VERSION=3.6.6
|
|
||||||
|
|
||||||
# These settings probably don't need any change
|
# These settings probably don't need any change
|
||||||
export WINEPREFIX=/opt/wine64
|
export WINEPREFIX=/opt/wine64
|
||||||
export PYTHONDONTWRITEBYTECODE=1
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
export PYTHONHASHSEED=22
|
export PYTHONHASHSEED=22
|
||||||
|
|
||||||
PYHOME=c:/python$PYTHON_VERSION
|
PYHOME=c:/python3
|
||||||
PYTHON="wine $PYHOME/python.exe -OO -B"
|
PYTHON="wine $PYHOME/python.exe -OO -B"
|
||||||
|
|
||||||
|
|
||||||
|
@ -60,7 +59,7 @@ cd ..
|
||||||
rm -rf dist/
|
rm -rf dist/
|
||||||
|
|
||||||
# build standalone and portable versions
|
# build standalone and portable versions
|
||||||
wine "C:/python$PYTHON_VERSION/scripts/pyinstaller.exe" --noconfirm --ascii --clean --name $NAME_ROOT-$VERSION -w deterministic.spec
|
wine "$PYHOME/scripts/pyinstaller.exe" --noconfirm --ascii --clean --name $NAME_ROOT-$VERSION -w deterministic.spec
|
||||||
|
|
||||||
# set timestamps in dist, in order to make the installer reproducible
|
# set timestamps in dist, in order to make the installer reproducible
|
||||||
pushd dist
|
pushd dist
|
||||||
|
|
|
@ -10,8 +10,7 @@ for i, x in enumerate(sys.argv):
|
||||||
else:
|
else:
|
||||||
raise Exception('no name')
|
raise Exception('no name')
|
||||||
|
|
||||||
PYTHON_VERSION = '3.6.6'
|
PYHOME = 'c:/python3'
|
||||||
PYHOME = 'c:/python' + PYTHON_VERSION
|
|
||||||
|
|
||||||
home = 'C:\\electrum\\'
|
home = 'C:\\electrum\\'
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ folder.
|
||||||
And then build from this directory:
|
And then build from this directory:
|
||||||
```
|
```
|
||||||
$ git checkout $REV
|
$ git checkout $REV
|
||||||
$ sudo docker run \
|
$ sudo docker run -it \
|
||||||
--name electrum-wine-builder-cont \
|
--name electrum-wine-builder-cont \
|
||||||
-v $PWD:/opt/wine64/drive_c/electrum \
|
-v $PWD:/opt/wine64/drive_c/electrum \
|
||||||
--rm \
|
--rm \
|
||||||
|
|
|
@ -19,7 +19,8 @@ PYTHON_VERSION=3.6.6
|
||||||
export WINEPREFIX=/opt/wine64
|
export WINEPREFIX=/opt/wine64
|
||||||
#export WINEARCH='win32'
|
#export WINEARCH='win32'
|
||||||
|
|
||||||
PYHOME=c:/python$PYTHON_VERSION
|
PYTHON_FOLDER="python3"
|
||||||
|
PYHOME="c:/$PYTHON_FOLDER"
|
||||||
PYTHON="wine $PYHOME/python.exe -OO -B"
|
PYTHON="wine $PYHOME/python.exe -OO -B"
|
||||||
|
|
||||||
|
|
||||||
|
@ -105,7 +106,7 @@ for msifile in core dev exe lib pip tools; do
|
||||||
wget -N -c "https://www.python.org/ftp/python/$PYTHON_VERSION/win32/${msifile}.msi"
|
wget -N -c "https://www.python.org/ftp/python/$PYTHON_VERSION/win32/${msifile}.msi"
|
||||||
wget -N -c "https://www.python.org/ftp/python/$PYTHON_VERSION/win32/${msifile}.msi.asc"
|
wget -N -c "https://www.python.org/ftp/python/$PYTHON_VERSION/win32/${msifile}.msi.asc"
|
||||||
verify_signature "${msifile}.msi.asc" $KEYRING_PYTHON_DEV
|
verify_signature "${msifile}.msi.asc" $KEYRING_PYTHON_DEV
|
||||||
wine msiexec /i "${msifile}.msi" /qb TARGETDIR=C:/python$PYTHON_VERSION
|
wine msiexec /i "${msifile}.msi" /qb TARGETDIR=$PYHOME
|
||||||
done
|
done
|
||||||
|
|
||||||
# upgrade pip
|
# upgrade pip
|
||||||
|
@ -136,7 +137,7 @@ download_if_not_exist $LIBUSB_FILENAME "$LIBUSB_URL"
|
||||||
verify_hash $LIBUSB_FILENAME "$LIBUSB_SHA256"
|
verify_hash $LIBUSB_FILENAME "$LIBUSB_SHA256"
|
||||||
7z x -olibusb $LIBUSB_FILENAME -aoa
|
7z x -olibusb $LIBUSB_FILENAME -aoa
|
||||||
|
|
||||||
cp libusb/MS32/dll/libusb-1.0.dll $WINEPREFIX/drive_c/python$PYTHON_VERSION/
|
cp libusb/MS32/dll/libusb-1.0.dll $WINEPREFIX/drive_c/$PYTHON_FOLDER/
|
||||||
|
|
||||||
mkdir -p $WINEPREFIX/drive_c/tmp
|
mkdir -p $WINEPREFIX/drive_c/tmp
|
||||||
cp secp256k1/libsecp256k1.dll $WINEPREFIX/drive_c/tmp/
|
cp secp256k1/libsecp256k1.dll $WINEPREFIX/drive_c/tmp/
|
||||||
|
|
Loading…
Add table
Reference in a new issue