|
@ -5,11 +5,11 @@ NSIS_FILENAME=nsis-3.08-setup.exe |
|
|
NSIS_URL=https://downloads.sourceforge.net/project/nsis/NSIS%203/3.08/$NSIS_FILENAME |
|
|
NSIS_URL=https://downloads.sourceforge.net/project/nsis/NSIS%203/3.08/$NSIS_FILENAME |
|
|
NSIS_SHA256=bbc76be36ecb2fc00d493c91befdaf71654226ad8a4fc4dc338458916bf224d0 |
|
|
NSIS_SHA256=bbc76be36ecb2fc00d493c91befdaf71654226ad8a4fc4dc338458916bf224d0 |
|
|
|
|
|
|
|
|
PYINSTALLER_REPO="https://github.com/SomberNight/pyinstaller.git" |
|
|
PYINSTALLER_REPO="https://github.com/pyinstaller/pyinstaller.git" |
|
|
PYINSTALLER_COMMIT="80ee4d613ecf75a1226b960a560ee01459e65ddb" |
|
|
PYINSTALLER_COMMIT="63438b1842eacd7f081fc53f1f5212bc20b7d02e" |
|
|
# ^ tag 4.2, plus a custom commit that fixes cross-compilation with MinGW |
|
|
# ^ latest commit from "v4" branch, somewhat after "4.10" tag |
|
|
|
|
|
|
|
|
PYTHON_VERSION=3.9.10 |
|
|
PYTHON_VERSION=3.9.11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Let's begin! |
|
|
# Let's begin! |
|
@ -44,8 +44,8 @@ for msifile in core dev exe lib pip tools; do |
|
|
echo "Installing $msifile..." |
|
|
echo "Installing $msifile..." |
|
|
download_if_not_exist "$PYTHON_DOWNLOADS/${msifile}.msi" "https://www.python.org/ftp/python/$PYTHON_VERSION/$PYARCH/${msifile}.msi" |
|
|
download_if_not_exist "$PYTHON_DOWNLOADS/${msifile}.msi" "https://www.python.org/ftp/python/$PYTHON_VERSION/$PYARCH/${msifile}.msi" |
|
|
download_if_not_exist "$PYTHON_DOWNLOADS/${msifile}.msi.asc" "https://www.python.org/ftp/python/$PYTHON_VERSION/$PYARCH/${msifile}.msi.asc" |
|
|
download_if_not_exist "$PYTHON_DOWNLOADS/${msifile}.msi.asc" "https://www.python.org/ftp/python/$PYTHON_VERSION/$PYARCH/${msifile}.msi.asc" |
|
|
verify_signature "$PYTHON_DOWNLOADS/${msifile}.msi.asc" $KEYRING_PYTHON_DEV |
|
|
verify_signature "$PYTHON_DOWNLOADS/${msifile}.msi.asc" $KEYRING_PYTHON_DEV || fail "invalid sig for ${msifile}.msi" |
|
|
wine msiexec /i "$PYTHON_DOWNLOADS/${msifile}.msi" /qb TARGETDIR=$WINE_PYHOME |
|
|
wine msiexec /i "$PYTHON_DOWNLOADS/${msifile}.msi" /qb TARGETDIR=$WINE_PYHOME || fail "wine msiexec failed for ${msifile}.msi" |
|
|
done |
|
|
done |
|
|
|
|
|
|
|
|
break_legacy_easy_install |
|
|
break_legacy_easy_install |
|
@ -99,12 +99,7 @@ info "Building PyInstaller." |
|
|
pushd bootloader |
|
|
pushd bootloader |
|
|
# cross-compile to Windows using host python |
|
|
# cross-compile to Windows using host python |
|
|
python3 ./waf all CC="${GCC_TRIPLET_HOST}-gcc" \ |
|
|
python3 ./waf all CC="${GCC_TRIPLET_HOST}-gcc" \ |
|
|
CFLAGS="-static \ |
|
|
CFLAGS="-static" |
|
|
-Wno-dangling-else \ |
|
|
|
|
|
-Wno-error=unused-value \ |
|
|
|
|
|
-Wno-error=implicit-function-declaration \ |
|
|
|
|
|
-Wno-error=int-to-pointer-cast \ |
|
|
|
|
|
-Wno-error=stringop-truncation" |
|
|
|
|
|
popd |
|
|
popd |
|
|
# sanity check bootloader is there: |
|
|
# sanity check bootloader is there: |
|
|
[[ -e "PyInstaller/bootloader/Windows-$PYINST_ARCH/runw.exe" ]] || fail "Could not find runw.exe in target dir!" |
|
|
[[ -e "PyInstaller/bootloader/Windows-$PYINST_ARCH/runw.exe" ]] || fail "Could not find runw.exe in target dir!" |
|
|