From f00b9394029f99d2277b82feb1adb086860a89ff Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 1 Jun 2024 23:24:35 +0000 Subject: [PATCH] v1.13.3 --- copyparty/__version__.py | 4 +-- copyparty/up2k.py | 4 +-- copyparty/web/browser.css | 9 ++++++ docs/changelog.md | 54 +++++++++++++++++++++++++++++++++- scripts/deps-docker/Dockerfile | 2 +- 5 files changed, 67 insertions(+), 6 deletions(-) diff --git a/copyparty/__version__.py b/copyparty/__version__.py index 31e98ef7..672c9887 100644 --- a/copyparty/__version__.py +++ b/copyparty/__version__.py @@ -1,8 +1,8 @@ # coding: utf-8 -VERSION = (1, 13, 2) +VERSION = (1, 13, 3) CODENAME = "race the beam" -BUILD_DT = (2024, 5, 10) +BUILD_DT = (2024, 6, 1) S_VERSION = ".".join(map(str, VERSION)) S_BUILD_DT = "{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT) diff --git a/copyparty/up2k.py b/copyparty/up2k.py index 9d8e7e6a..e30fac8b 100644 --- a/copyparty/up2k.py +++ b/copyparty/up2k.py @@ -709,9 +709,9 @@ class Up2k(object): try: bos.makedirs(vol.realpath) # gonna happen at snap anyways dir_is_empty(self.log_func, not self.args.no_scandir, vol.realpath) - except: + except Exception as ex: self.volstate[vol.vpath] = "OFFLINE (cannot access folder)" - self.log("cannot access " + vol.realpath, c=1) + self.log("cannot access %s: %r" % (vol.realpath, ex), c=1) continue if scan_vols and vol.vpath not in scan_vols: diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index d0eb3270..2cebbdb8 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -269,6 +269,7 @@ html.bz { --btn-bg: #202231; --btn-h-bg: #2d2f45; --btn-1-bg: #ba2959; + --btn-1-is: #f59; --btn-1-fg: #fff; --btn-1h-fg: #000; --txt-sh: a; @@ -3060,6 +3061,14 @@ html.b #ggrid>a { html.b .btn { top: -.1em; } +html.b .btn, +html.b #u2conf a.b, +html.b #u2conf input[type="checkbox"]:not(:checked)+label { + box-shadow: 0 .05em 0 var(--bg-d3) inset; +} +html.b .tgl.btn.on { + box-shadow: 0 .05em 0 var(--btn-1-is) inset; +} html.b #op_up2k.srch sup { color: #fc0; } diff --git a/docs/changelog.md b/docs/changelog.md index 0bbb385d..ecea48fa 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,3 +1,55 @@ +▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ +# 2024-0510-1431 `v1.13.2` s3xmodit.zip + +## new features + +* play [compressed](https://a.ocv.me/pub/demo/music/chiptunes/compressed/#af-99f0c0e4) s3xmodit chiptunes/modules c0466279 + * can now read gz/xz/zip-compressed s3m/xm/mod/it songs + * new filetypes supported: mdz, mdgz, mdxz, s3z, s3gz, s3xz, xmz, xmgz, xmxz, itz, itgz, itxz + * and if you need to fit even more tracks on the mixtape, [try mo3](https://a.ocv.me/pub/demo/music/chiptunes/compressed/#af-0bc9b877) +* option to batch-convert audio waveforms 38e4fdfe +* volflag to improve audio waveform compression with pngquant 82ce6862 +* option to add or change mappings from file-extensions to mimetypes 560d7b66 +* export and publish the `--help` text for online viewing 560d7b66 + * now available [as html](https://ocv.me/copyparty/helptext.html) and as [plaintext](https://ocv.me/copyparty/helptext.txt), includes many features not documented in the readme +* another way to add your own UI translations 19d156ff + +## bugfixes + +* ensure OS signals are immediately received and processed 87c60a1e + * things like reload and shutdown signals from systemd could get lost/stuck +* fix mimetype detection for uppercase file extensions 565daee9 +* when clicking a `.ts` file in the gridview, don't open it as text 925c7f0a + * ...as it's probably an mpeg transport-stream, not a typescript file +* be less aggressive in dropping volume caches e396c5c2 + * very minor performance gain, only really relevant if you're doing something like burning a copyparty volume onto a CD + * previously, adding or removing any volume at all was enough to drop covers cache for all volumes; now this only happens if an intersecting volume is added/removed + +## other changes + +* updated dompurify to 3.1.2 566cbb65 +* opengraph: add the full filename as url suffix 5c1e2390 + * so discord picks a good filename when saving an image + +---- + +# 💾 what to download? +| download link | is it good? | description | +| -- | -- | -- | +| **[copyparty-sfx.py](https://github.com/9001/copyparty/releases/latest/download/copyparty-sfx.py)** | ✅ the best 👍 | runs anywhere! only needs python | +| [a docker image](https://github.com/9001/copyparty/blob/hovudstraum/scripts/docker/README.md) | it's ok | good if you prefer docker 🐋 | +| [copyparty.exe](https://github.com/9001/copyparty/releases/latest/download/copyparty.exe) | ⚠️ [acceptable](https://github.com/9001/copyparty#copypartyexe) | for [win8](https://user-images.githubusercontent.com/241032/221445946-1e328e56-8c5b-44a9-8b9f-dee84d942535.png) or later; built-in thumbnailer | +| [u2c.exe](https://github.com/9001/copyparty/releases/download/v1.13.0/u2c.exe) | ⚠️ acceptable | [CLI uploader](https://github.com/9001/copyparty/blob/hovudstraum/bin/u2c.py) as a win7+ exe ([video](https://a.ocv.me/pub/demo/pics-vids/u2cli.webm)) | +| [copyparty.pyz](https://github.com/9001/copyparty/releases/latest/download/copyparty.pyz) | ⚠️ acceptable | similar to the regular sfx, [mostly worse](https://github.com/9001/copyparty#zipapp) | +| [copyparty32.exe](https://github.com/9001/copyparty/releases/latest/download/copyparty32.exe) | ⛔️ [dangerous](https://github.com/9001/copyparty#copypartyexe) | for [win7](https://user-images.githubusercontent.com/241032/221445944-ae85d1f4-d351-4837-b130-82cab57d6cca.png) -- never expose to the internet! | +| [cpp-winpe64.exe](https://github.com/9001/copyparty/releases/download/v1.10.1/copyparty-winpe64.exe) | ⛔️ dangerous | runs on [64bit WinPE](https://user-images.githubusercontent.com/241032/205454984-e6b550df-3c49-486d-9267-1614078dd0dd.png), otherwise useless | + +* except for [u2c.exe](https://github.com/9001/copyparty/releases/download/v1.13.0/u2c.exe), all of the options above are mostly equivalent +* the zip and tar.gz files below are just source code +* python packages are available at [PyPI](https://pypi.org/project/copyparty/#files) + + + ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ # 2024-0506-0029 `v1.13.1` ctrl-v @@ -30,7 +82,7 @@ ---- -this release introduces **[copyparty.pyz](https://github.com/9001/copyparty/releases/latest/download/copyparty-sfx.py)**, yet another way to bring copyparty where it's needed -- very limited and with many drawbacks (see [readme](https://github.com/9001/copyparty#zipapp)) but may work when the others don't +this release introduces **[copyparty.pyz](https://github.com/9001/copyparty/releases/latest/download/copyparty.pyz)**, yet another way to bring copyparty where it's needed -- very limited and with many drawbacks (see [readme](https://github.com/9001/copyparty#zipapp)) but may work when the others don't diff --git a/scripts/deps-docker/Dockerfile b/scripts/deps-docker/Dockerfile index b5efa59b..60607093 100644 --- a/scripts/deps-docker/Dockerfile +++ b/scripts/deps-docker/Dockerfile @@ -3,7 +3,7 @@ WORKDIR /z ENV ver_asmcrypto=c72492f4a66e17a0e5dd8ad7874de354f3ccdaa5 \ ver_hashwasm=4.10.0 \ ver_marked=4.3.0 \ - ver_dompf=3.1.2 \ + ver_dompf=3.1.5 \ ver_mde=2.18.0 \ ver_codemirror=5.65.16 \ ver_fontawesome=5.13.0 \