From 266d6e0ae6a6eecac7bc863bd8f746d16686e61a Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 8 Mar 2026 21:29:43 +0000 Subject: [PATCH] fix exe build --- scripts/pyinstaller/build.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/pyinstaller/build.sh b/scripts/pyinstaller/build.sh index a7944a5c..a3a2bd41 100644 --- a/scripts/pyinstaller/build.sh +++ b/scripts/pyinstaller/build.sh @@ -57,6 +57,8 @@ rm -rf mods/magic/ sed -ri /pickle/d mods/jinja2/_compat.py sed -ri '/(bccache|PackageLoader)/d' mods/jinja2/__init__.py af '/^class/{s=0}/^class PackageLoader/{s=1}!s' mods/jinja2/loaders.py + sed -ri 's/from url.*Request, urlopen.*/pass/' mods/copyparty/svchub.py + sed -ri 's/(.*"--vc-.*, help=).*/\1argparse.SUPPRESS)/' mods/copyparty/__main__.py } [ $w10 ] && { sed -ri '/(bccache|PackageLoader)/d' $spkgs/jinja2/__init__.py @@ -84,8 +86,6 @@ excl=( ctypes.macholib curses email._header_value_parser - email.header - email.parser importlib.resources importlib_resources multiprocessing @@ -95,8 +95,6 @@ excl=( pkg_resources PIL.EpsImagePlugin pyftpdlib.prefork - urllib.request - urllib.response urllib.robotparser ) [ $w10 ] && excl+=( @@ -111,12 +109,16 @@ excl=( PIL.PdfParser zipimport ) || excl+=( + email.header + email.parser inspect PIL PIL.ExifTags PIL.Image PIL.ImageDraw PIL.ImageOps + urllib.request + urllib.response zipfile ) excl=( "${excl[@]/#/--exclude-module }" )