Repository navigation
fix(install): build on Windows (0.15.1) - #11
Merged
Merged
Conversation
formcompiler's Windows build runs ./formshot install in Git Bash, and backend/oc_install sourced venv/bin/activate, which Python on Windows never makes (it makes venv/Scripts/activate), so the build stopped before anything was installed. The script now sources venv/bin/activate when it exists and venv/Scripts/activate otherwise, the same two places setup/lib.sh's fsh_venv already tries for every other script.
make_folder's DirBuilder is mutable only for the Unix mode call, so a Windows build warned that the variable need not be mutable. The binding now allows unused_mut on non-Unix targets. cargo check of the whole engine workspace for x86_64-pc-windows-msvc is clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix(install): build on Windows (0.15.1)
Summary
[formshot] installing backendwith./oc_install: line 6: venv/bin/activate: No such file or directory. Python on Windows puts the venv's activate script invenv/Scripts/, andbackend/oc_installonly looked invenv/bin/. It now sourcesvenv/bin/activatewhen it exists andvenv/Scripts/activateotherwise, the same two placessetup/lib.shfsh_venvalready tries, and it makes the venv with the Python the setup suite picks (3.12 or newer,pythonwhenpython3is missing).backend/boot_backend(./formshot backend) had the same line and takes the same two places.fsh-farm/src/token.rs) builds without an unusedmutwarning on Windows, where the 0700 mode does not apply.compile_v0.15.1from the fixed main.Commits
Oldest first. The short hashes change when
formprsigns the commits.Version
0.15.0 to 0.15.1 (patch: build fixes, no feature change). The release commit bumps every version site: VERSION, the frontend's package.json, package-lock.json and version.ts, tauri.conf.json, the shell's and the 19 engine crates' manifests and both lock files, fsh-py's pyproject.toml, the backend's
__version__, the docs, the harness skill and the README badge. The generated tool references were rewritten by./formshot agents syncfrom the 0.15.1 engine.Checks
x86_64-pc-windows-msvcwith no warnings (cross-checked on Linux with a stub for the ufbx C build).backend/oc_installandbackend/boot_backend:bash -n, and both on Linux (the venv made, the service started on 127.0.0.1:8300).formshot-engine 0.15.1; the backend imports at 0.15.1;cargo metadata --lockedin native and src-tauri; tsc and vite build;./formshot i18n check;./formshot agents checkclean; the harness skill validator passes; the JSON files parse; the em dash, emoji and trailer scans are clean.Not run: the Windows desktop build itself, which only FormCompiler's Windows runner can run. The next FormCompiler run after this merge is the real test of the install, the PyInstaller freeze and the Tauri bundle on Windows.
Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.