You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0411af5
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: BUILD_WINDOWS.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,10 @@ cargo build --release
70
70
# Output will be at: target/release/scaleit-bridge.exe
71
71
```
72
72
73
+
For automated releases that target the installer bundle, run `powershell.exe -ExecutionPolicy Bypass -File "..\build-rust-mingw.ps1"` from the repository root to configure the MinGW toolchain and produce the `x86_64-pc-windows-gnu` release binary. This script also handles the `PATH` environment, linker overrides and cleanup required for downstream packaging.
74
+
75
+
> **GNU linker path**: the scripts depend on `ld.exe` living under `D:\msys64\mingw64\x86_64-w64-mingw32\bin`. Make sure that directory is exported into `%PATH%` before the regular `mingw64\bin` so the linker is discoverable when `cargo` invokes `ld`. The scripts (`build-rust-mingw.ps1`, `build-mingw.ps1`, `test-rust-mingw.ps1`) already include that path, so rerunning them will refresh the environment.
Use `scripts/prepare-installer.ps1` to produce the release ZIP without manually copying files. The script:
140
+
141
+
1. Prepares the MinGW toolchain via `build-rust-mingw.ps1` and builds `src-rust` with the `x86_64-pc-windows-gnu` target.
142
+
2. Installs frontend dependencies (if missing) and runs `npm run build` to generate the `dist/` bundle.
143
+
3. Calls `Create-InstallerPackage.ps1` to copy binaries, configs, frontend assets, scripts, documentation and `.env.example` into `ScaleIT_Bridge_Windows_v<Version>` and compress it.
144
+
145
+
```powershell
146
+
# builds backend+frontend and packages everything for v1.0.0 in ./release
0 commit comments