windows build: minor clean-up
This commit is contained in:
@@ -2,20 +2,12 @@
|
||||
|
||||
NAME_ROOT=electrum
|
||||
|
||||
# These settings probably don't need any change
|
||||
export WINEPREFIX=/opt/wine64
|
||||
export WINEDEBUG=-all
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
|
||||
PYHOME="c:/python3"
|
||||
PYTHON="wine $PYHOME/python.exe -OO -B"
|
||||
|
||||
|
||||
# Let's begin!
|
||||
set -e
|
||||
|
||||
here="$(dirname "$(readlink -e "$0")")"
|
||||
|
||||
. "$CONTRIB"/build_tools_util.sh
|
||||
|
||||
pushd $WINEPREFIX/drive_c/electrum
|
||||
@@ -42,19 +34,19 @@ popd
|
||||
|
||||
|
||||
# Install frozen dependencies
|
||||
$PYTHON -m pip install --no-dependencies --no-warn-script-location \
|
||||
$WINE_PYTHON -m pip install --no-dependencies --no-warn-script-location \
|
||||
--cache-dir "$WINE_PIP_CACHE_DIR" -r "$CONTRIB"/deterministic-build/requirements.txt
|
||||
|
||||
$PYTHON -m pip install --no-dependencies --no-warn-script-location \
|
||||
$WINE_PYTHON -m pip install --no-dependencies --no-warn-script-location \
|
||||
--cache-dir "$WINE_PIP_CACHE_DIR" -r "$CONTRIB"/deterministic-build/requirements-binaries.txt
|
||||
|
||||
$PYTHON -m pip install --no-dependencies --no-warn-script-location \
|
||||
$WINE_PYTHON -m pip install --no-dependencies --no-warn-script-location \
|
||||
--cache-dir "$WINE_PIP_CACHE_DIR" -r "$CONTRIB"/deterministic-build/requirements-hw.txt
|
||||
|
||||
pushd $WINEPREFIX/drive_c/electrum
|
||||
# see https://github.com/pypa/pip/issues/2195 -- pip makes a copy of the entire directory
|
||||
info "Pip installing Electrum. This might take a long time if the project folder is large."
|
||||
$PYTHON -m pip install --no-dependencies --no-warn-script-location .
|
||||
$WINE_PYTHON -m pip install --no-dependencies --no-warn-script-location .
|
||||
popd
|
||||
|
||||
|
||||
@@ -62,7 +54,7 @@ rm -rf dist/
|
||||
|
||||
# build standalone and portable versions
|
||||
info "Running pyinstaller..."
|
||||
wine "$PYHOME/scripts/pyinstaller.exe" --noconfirm --ascii --clean --name $NAME_ROOT-$VERSION -w deterministic.spec
|
||||
wine "$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
|
||||
pushd dist
|
||||
|
||||
Reference in New Issue
Block a user