Files
actual/docs/contributing/windows.md
Matt Fiddaman 4e243420fa change minimum version of Node.js to version 20 (#692)
I think I got all instances where we specify a version, there seem to
only be two places in the docs.

We'll also call it out in the release notes.

https://github.com/actualbudget/actual/pull/4978
2025-05-12 19:17:10 +02:00

29 lines
1.3 KiB
Markdown

# Building on Windows
Many of the build scripts are bash scripts and not natively invocable in Windows. To solve this, you can build the project using Git Bash.
1. Install [Git & Git Bash for Windows](https://git-scm.com/downloads).
2. Ensure you have activated [Developer Mode](https://docs.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development).
3. Install Node v20.x or greater.
4. Clone this repo.
5. Using Git Bash (run as administrator), change to the root of this repo.
6. From inside the bash shell, run `yarn install`.
7. From still inside the shell, run `yarn start:browser`.
8. Open your browser to [http://localhost:3001](http://localhost:3001).
## How to Build the Electron App on Windows
1. Follow steps 1 - 6 above.
2. Run `yarn start`. If you get an error about bundle.desktop.js, just <Key mod="ctrl" k="c" /> and rerun `yarn start`.
3. If you get an error from electron, run `yarn rebuild-electron` and rerun `yarn start`.
# Errors
## `rsync: command not found`
If you run into this error, you will need to install the rsync binary to Git Bash. Follow the [directions here](https://prasaz.medium.com/add-rsync-to-windows-git-bash-f42736bae1b3).
## `ln: failed to create symbolic link '../../desktop-client/public/kcab': Operation not permitted`
Bash needs to be run as administrator.