Windows Build Support - Fixes Required
I successfully built Cracked Oura on Windows by resolving several issues. Documenting these here to help with the official Windows release.
Issues Found
1. Python backend build path (frontend/package.json)
The build:backend script uses a Unix-style path that doesn't work on Windows:
Needs to be changed to:
2. echo command adds single quotes on Windows (frontend/package.json)
The echo command in the build script wraps the JSON in single quotes on Windows, producing invalid JSON in dist-electron/package.json:
Instead of the correct:
Fix: remove the single quotes from the echo command in the build script.
3. npm peer dependency conflict
react-day-picker@8.10.1 declares peer dependency on React 16/17/18 but the project uses React 19. Running npm install fails without the --legacy-peer-deps flag.
4. Symbolic link permissions
Running the build requires administrator privileges on Windows due to symbolic link creation during the winCodeSign extraction step.
Suggested package.json script fixes
"build:backend": "cd ../backend && venv\\Scripts\\python -m PyInstaller --noconfirm build.spec && cd ../frontend",
"build": "node --input-type=commonjs -e \"require('fs').rmSync('dist', {recursive: true, force: true})\" && npm run build:backend && tsc -b && vite build && tsc -p electron/tsconfig.json && echo {\"type\":\"commonjs\"} > dist-electron/package.json && electron-builder",
Environment
- OS: Windows 11
- Node.js: v18+
- Python: 3.11+
Hope this helps get an official Windows release out! Happy to test further if needed.
Windows Build Support - Fixes Required
I successfully built Cracked Oura on Windows by resolving several issues. Documenting these here to help with the official Windows release.
Issues Found
1. Python backend build path (
frontend/package.json)The
build:backendscript uses a Unix-style path that doesn't work on Windows:Needs to be changed to:
2.
echocommand adds single quotes on Windows (frontend/package.json)The
echocommand in thebuildscript wraps the JSON in single quotes on Windows, producing invalid JSON indist-electron/package.json:Instead of the correct:
Fix: remove the single quotes from the echo command in the
buildscript.3. npm peer dependency conflict
react-day-picker@8.10.1declares peer dependency on React 16/17/18 but the project uses React 19. Runningnpm installfails without the--legacy-peer-depsflag.4. Symbolic link permissions
Running the build requires administrator privileges on Windows due to symbolic link creation during the
winCodeSignextraction step.Suggested
package.jsonscript fixesEnvironment
Hope this helps get an official Windows release out! Happy to test further if needed.