diff --git a/.claude/skills/formencoder-skillset/sub-skills/verification/SUB-SKILL.md b/.claude/skills/formencoder-skillset/sub-skills/verification/SUB-SKILL.md index a500486..8e12f78 100644 --- a/.claude/skills/formencoder-skillset/sub-skills/verification/SUB-SKILL.md +++ b/.claude/skills/formencoder-skillset/sub-skills/verification/SUB-SKILL.md @@ -14,6 +14,7 @@ description: Verifying a change to formencoder before it ships. Use after any en | Separate tools | `./formencoder install-tools --keep-going` then `execute tools.list` | each tool reports its path; a package or software encode reads back through `verify` | | Interface types and bundle | `cd frontend && npm run build` | no errors | | Text hygiene | `python3 setup/lint_text.py .` | 0 findings | +| Windows freeze command | `backend/venv/bin/python setup/check_freeze_bat.py` (PyInstaller from `backend/requirements_desktop.txt`) | 0 findings | | Agent references | `./formencoder agents sync --check` | in step | | Skills | the god-tier `validate_skill.py` on `.claude/skills/formencoder-harness` and `formencoder-skillset` | 0 FAIL | | Toolchain | `./formencoder doctor` | ready | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf69551..b262ab9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -246,6 +246,13 @@ jobs: run: python3 setup/lint_text.py . - name: Python syntax of the setup scripts run: python3 -m py_compile setup/*.py + - uses: actions/setup-python@v5 + with: + python-version: '3.12' + - name: The Windows freeze command parses as PyInstaller reads it + run: | + python -m pip install -r backend/requirements_desktop.txt + python setup/check_freeze_bat.py desktop-shell: runs-on: ubuntu-22.04 diff --git a/CHANGELOG.md b/CHANGELOG.md index e38bd83..220d6f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## v0.13.1 · 2026-11-20 + +The Windows release builds again. + +- Fixed: the Windows build of 0.13.0 stopped while packaging the engine, because one space was missing from the packaging command. The command is whole again, and every check now reads that command the way the packager does, so a slip of this kind fails the checks before a release. +- Fixed, on 64-bit Windows: the LAME MP3 encoder and the C2PA tool were left out of the Windows app because they did not build there. Both are now built for the right processor, and the C2PA tool uses a full Perl when the computer has one. +- The engine's 105 tests that need its native core were run again with it built: the whole engine suite passes, 282 tests. +- Not run for this release: Windows itself (the first proof is the windows_x64 release build), macOS and the desktop app. + ## v0.13.0 · 2026-11-20 The family's design names, and a released status. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fbc4452..28ff2bb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -50,6 +50,8 @@ backend/venv/bin/pip install -r backend/requirements-test.txt backend/venv/bin/python -m pytest frontend/tests/window -q -p no:cacheprovider python3 setup/lint_text.py . python3 -m py_compile setup/*.py +backend/venv/bin/pip install -r backend/requirements_desktop.txt +backend/venv/bin/python setup/check_freeze_bat.py ``` The engine tests need FFmpeg on your path, and the window smoke needs Playwright and its diff --git a/README.md b/README.md index 46d480d..621fda5 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@
-
+
@@ -102,7 +102,7 @@ FormEncoder loads extensions made to the Form Extension Contract (API 1): FormPo
## Under the hood
-Version 0.13.0 · Apache-2.0 · Rust encoding engine, Python service, TypeScript interface, Tauri 2 shell
+Version 0.13.1 · Apache-2.0 · Rust encoding engine, Python service, TypeScript interface, Tauri 2 shell
- **Engine:** seven `fencoder` Rust crates in `native/`, loaded by the Python service as the `fe_core` extension.
- **FFmpeg:** a pinned LGPL build, run as a separate program and never linked.
diff --git a/backend/HASHOUT_LOG.md b/backend/HASHOUT_LOG.md
index d6f0dc1..2d33ef2 100644
--- a/backend/HASHOUT_LOG.md
+++ b/backend/HASHOUT_LOG.md
@@ -425,3 +425,20 @@ Refers to `setup/freeze_backend`, `setup/freeze_backend.bat` · kind: change ·
- Why: the owner's decision for the family (D3): a Windows engine is built with no console window, as FormWeb's is. FormEncoder's freeze scripts had no switch, so the switch is added with its default turned round: on Windows PyInstaller gets `--noconsole` unless `FORMENCODER_ENGINE_WINDOWED=0`. The bash script adds it only where `fe_os` says windows; macOS and Linux builds are unchanged.
- The shell reads the engine's output through pipes, which a program with no console still gets. Where it has none at all, `formencoder_engine.py` already puts `os.devnull` in place of a missing stdin, stdout or stderr before anything else runs.
- Seen: `--selfcheck` run from the source with `sys.stdout`, `sys.stderr` and `sys.stdin` set to None exits 0. `bash -n setup/freeze_backend` clean; the `.bat` was read, not run. Not run: no Windows build has shown the windowed engine.
+
+## The Windows freeze command is whole again, and a check parses it (0.13.1)
+
+Refers to `setup/freeze_backend.bat`, `setup/check_freeze_bat.py`, `.github/workflows/ci.yml` (job `scripts`), `CONTRIBUTING.md` · kind: fix · logged: 0.13.1 · 2026-11-20
+
+- Why: the entry above lost a space in the `.bat` (`--name formencoder-engine--distpath dist-engine`). PyInstaller took `formencoder-engine--distpath` as the name and `dist-engine` as the script, and refused the real script as an unrecognized argument, so the 0.13.0 release stopped for windows_x64. The space is back. Read token by token against `setup/freeze_backend`: every option and the five `--add-data` pairs match (`;` for `:`); the `.bat` adds `--collect-submodules winpty`, which only Windows installs (`pywinpty` in `requirements.txt` is for win32).
+- `setup/check_freeze_bat.py` takes the one `pyinstaller` line out of the `.bat`, puts stand-ins for `%ROOT%` (`D:\a\formencoder\formencoder`) and `%CONSOLE%` (`--noconsole`), splits it as cmd.exe does (double quotes group, backslashes are plain) and parses it with `PyInstaller.__main__.generate_parser()` with `os.pathsep` set to `;` for the call. It parses the POSIX twin the same way (with `:`), and fails if either line is refused, if the `.bat`'s script names are not the engine entry file alone, or if any parsed option differs from the twin's apart from `winpty` in `collect_submodules`. CI's `scripts` job installs `requirements_desktop.txt` and runs it; CONTRIBUTING lists it.
+- Seen: on the 0.13.0 line it exits 1 with PyInstaller's own `error: unrecognized arguments: D:\a\formencoder\formencoder\backend\formencoder_engine.py`; on the fixed line 0 findings; with one `--add-data` destination changed in a scratch copy it names the `datas` difference and exits 1. Not run: Windows itself; the first proof is the windows_x64 release build.
+
+## LAME and c2patool build on 64-bit Windows (0.13.1)
+
+Refers to `setup/install_tools.py` (`nmake_machine`, `full_perl`, `run`, `install`) · kind: fix · logged: 0.13.1 · 2026-11-20
+
+- Why: the 0.13.0 Windows build log left both tools out. LAME's `nmake -f Makefile.MSVC` ended in `LNK1112: module machine type 'x64' conflicts with target machine type 'x86'`: the compiler from the x64 MSVC environment made x64 objects and the makefile's `lib` step asked for `/machine:I386`. c2patool's `cargo install` failed in vendored OpenSSL because the `perl` first on PATH is Git's, which lacks `Locale::Maketext::Simple`.
+- LAME: nmake gets `MSVCVER=Win64 MACHINE=/machine:X64` (a command-line macro wins over the makefile's own), or `MACHINE=/machine:ARM64` on ARM64, chosen from `VSCMD_ARG_TGT_ARCH` (the MSVC environment's target, which is what the compiler makes) and else `platform.machine()`. A 32-bit target gets the command as before. LAME 3.100's `Makefile.MSVC` could not be read here (no copy on this machine, no web), so the two macros are the ones the build log points at, not read from the file.
+- c2patool: on Windows the first of `OPENSSL_SRC_PERL`, `C:\Strawberry\perl\bin\perl.exe` and the `perl` on PATH that runs `-MLocale::Maketext::Simple -e 1` is passed as `OPENSSL_SRC_PERL` to that one `cargo install` only (the `openssl-src` crate reads it). With none, it says so and runs as before, so a failure is still the `--keep-going` warning.
+- Seen on Linux: the probe picks `/usr/bin/perl`; the macros are `x64` and `arm64` as above and none for `x86`. Not run: Windows itself; the first proof is the windows_x64 release build.
diff --git a/backend/app/__init__.py b/backend/app/__init__.py
index f23a6b3..7e0dc0e 100644
--- a/backend/app/__init__.py
+++ b/backend/app/__init__.py
@@ -1 +1 @@
-__version__ = "0.13.0"
+__version__ = "0.13.1"
diff --git a/demo/assets/demo.js b/demo/assets/demo.js
index 4769e0b..9c07f0f 100644
--- a/demo/assets/demo.js
+++ b/demo/assets/demo.js
@@ -10,7 +10,7 @@
No MD5 lines were found. Each line is a 32 character hash, two spaces and a file name.
`));for(let[e,n,i]of r){let r=s(`