From 70affb252fa8498277519770552d4fc3b7c12841 Mon Sep 17 00:00:00 2001 From: ZhuchkaTriplesix Date: Sun, 25 Oct 2026 22:47:28 +0300 Subject: [PATCH] fix(release): read manifest.json as UTF-8 when packaging (Windows Python defaults to cp1252) --- scripts/package_qext.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/package_qext.sh b/scripts/package_qext.sh index 2f4db44..197e0a5 100755 --- a/scripts/package_qext.sh +++ b/scripts/package_qext.sh @@ -58,7 +58,9 @@ else fi # Extract version from manifest.json using Python (works reliably across platforms) -VERSION=$("$PY" -c "import json; print(json.load(open('manifest.json'))['version'])") +# utf-8 explicitly: the manifest has Cyrillic text, and Windows Python reads +# files as cp1252 by default (that was the real cause of the silent 1.0.0). +VERSION=$("$PY" -c "import json; print(json.load(open('manifest.json', encoding='utf-8'))['version'])") if [ -z "$VERSION" ]; then echo "❌ Error: could not read the version from manifest.json." exit 1