Skip to content

Windows Build Support - Fixes Required #5

Description

@samuelbgitting

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:

./venv/bin/python

Needs to be changed to:

venv\Scripts\python

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:

'{"type":"commonjs"}'

Instead of the correct:

{"type":"commonjs"}

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions