diff --git a/copyparty/__main__.py b/copyparty/__main__.py index 0800d110..1d8a4056 100644 --- a/copyparty/__main__.py +++ b/copyparty/__main__.py @@ -232,6 +232,8 @@ def init_E(EE: EnvParams) -> None: p = os.environ.get("XDG_CONFIG_HOME") if not p: raise Exception() + if p.startswith("~"): + p = os.path.expanduser(p) p = os.path.abspath(os.path.realpath(p)) p = os.path.join(p, "copyparty") if not os.path.isdir(p): diff --git a/copyparty/__version__.py b/copyparty/__version__.py index 19a02b1e..86c380a0 100644 --- a/copyparty/__version__.py +++ b/copyparty/__version__.py @@ -1,8 +1,8 @@ # coding: utf-8 -VERSION = (1, 16, 18) +VERSION = (1, 16, 19) CODENAME = "COPYparty" -BUILD_DT = (2025, 3, 23) +BUILD_DT = (2025, 4, 8) S_VERSION = ".".join(map(str, VERSION)) S_BUILD_DT = "{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT) diff --git a/copyparty/svchub.py b/copyparty/svchub.py index de9fa7e0..d0d4de6f 100644 --- a/copyparty/svchub.py +++ b/copyparty/svchub.py @@ -194,8 +194,14 @@ class SvcHub(object): if not args.use_fpool and args.j != 1: args.no_fpool = True - t = "multithreading enabled with -j {}, so disabling fpool -- this can reduce upload performance on some filesystems" - self.log("root", t.format(args.j)) + t = "multithreading enabled with -j {}, so disabling fpool -- this can reduce upload performance on some filesystems, and make some antivirus-softwares " + c = 0 + if ANYWIN: + t += "(especially Microsoft Defender) stress your CPU and HDD severely during big uploads" + c = 3 + else: + t += "consume more resources (CPU/HDD) than normal" + self.log("root", t.format(args.j), c) if not args.no_fpool and args.j != 1: t = "WARNING: ignoring --use-fpool because multithreading (-j{}) is enabled" diff --git a/docs/changelog.md b/docs/changelog.md index 6c1db7b6..7bf1cac5 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,3 +1,30 @@ +▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ +# 2025-0323-2216 `v1.16.18` zlib-ng + +## 🧪 new features + +* prefer zlib-ng when available 57a56073 + * download-as-tar-gz becomes 2.5x faster + * default-enabled in docker-images + * not enabled in copyparty.exe yet; coming in a future python version +* docker: add mimalloc (optional, default-disabled) de2c9788 + * gives twice the speed, and twice the ram usage + +## 🩹 bugfixes + +* small up2k glitch 3c90cec0 + +## 🔧 other changes + +* rename logues/readmes when uploaded with write-only access 2525d594 + * since they are used as helptext when viewing the page +* try to block google and other bad bots from `?doc` and `?zip` 99f63adf + * apparently `rel="nofollow"` means nothing these days + +### the docker images for this release were built from e1dea7ef + + + ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ # 2025-0316-2002 `v1.16.17` boot2party diff --git a/scripts/deps-docker/Dockerfile b/scripts/deps-docker/Dockerfile index bc1d183d..79664a67 100644 --- a/scripts/deps-docker/Dockerfile +++ b/scripts/deps-docker/Dockerfile @@ -3,7 +3,7 @@ WORKDIR /z ENV ver_asmcrypto=c72492f4a66e17a0e5dd8ad7874de354f3ccdaa5 \ ver_hashwasm=4.12.0 \ ver_marked=4.3.0 \ - ver_dompf=3.2.4 \ + ver_dompf=3.2.5 \ ver_mde=2.18.0 \ ver_codemirror=5.65.18 \ ver_fontawesome=5.13.0 \ diff --git a/scripts/pyinstaller/deps.sha512 b/scripts/pyinstaller/deps.sha512 index 0b2bb34e..c9fd8f33 100644 --- a/scripts/pyinstaller/deps.sha512 +++ b/scripts/pyinstaller/deps.sha512 @@ -30,4 +30,4 @@ ac96786e5d35882e0c5b724794329c9125c2b86ae7847f17acfc49f0d294312c6afc1c3f248655de 12d7921dc7dfd8a4b0ea0fa2bae8f1354fcdd59ece3d7f4e075aed631f9ba791dc142c70b1ccd1e6287c43139df1db26bd57a7a217c8da3a77326036495cdb57 pillow-11.1.0-cp312-cp312-win_amd64.whl f0463895e9aee97f31a2003323de235fed1b26289766dc0837261e3f4a594a31162b69e9adbb0e9a31e2e2d4b5f25c762ed1669553df7dc89a8ba4f85d297873 pyinstaller-6.11.1-py3-none-win_amd64.whl d550a0a14428386945533de2220c4c2e37c0c890fc51a600f626c6ca90a32d39572c121ec04c157ba3a8d6601cb021f8433d871b5c562a3d342c804fffec90c1 pyinstaller_hooks_contrib-2024.11-py3-none-any.whl -17b64ff6744004a05d475c8f6de3e48286db4069afad4cae690f83b3555f8e35ceafb210eeba69a11e983d0da3001099de284b6696ed0f1bf9cd791938a7f2cd python-3.12.9-amd64.exe +4f9a4d9f65c93e2d851e2674057343a9599f30f5dc582ffca485522237d4fcf43653b3d393ed5eb11e518c4ba93714a07134bbb13a97d421cce211e1da34682e python-3.12.10-amd64.exe diff --git a/scripts/pyinstaller/notes.txt b/scripts/pyinstaller/notes.txt index 8f0f43c6..3ee64e70 100644 --- a/scripts/pyinstaller/notes.txt +++ b/scripts/pyinstaller/notes.txt @@ -41,7 +41,7 @@ fns=( pillow-11.1.0-cp312-cp312-win_amd64.whl pyinstaller-6.10.0-py3-none-win_amd64.whl pyinstaller_hooks_contrib-2024.8-py3-none-any.whl - python-3.12.9-amd64.exe + python-3.12.10-amd64.exe ) [ $w7 ] && fns+=( future-1.0.0-py3-none-any.whl