Skip to content

Commit b9cd8eb

Browse files
authored
docs: Add instructions for compiling local binaries (#1108)
1 parent 04eef0f commit b9cd8eb

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

README.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,59 @@ After the command has finished, you start the app locally with:
141141
```
142142
npm start
143143
```
144+
145+
### Compile a local binary (packaged app)
146+
147+
To produce a local packaged build, set `SENTRY_DSN` and `NODE_OPTIONS` in your shell first, then run Electron Forge.
148+
The CI/release workflow defaults are:
149+
150+
- `SENTRY_DSN="sentry"`
151+
- `NODE_OPTIONS="--max_old_space_size=8192"`
152+
153+
Example:
154+
155+
```bash
156+
export SENTRY_DSN="sentry"
157+
export NODE_OPTIONS="--max_old_space_size=8192"
158+
159+
npm install
160+
npm run package
161+
```
162+
163+
If you want installable artifacts (`.deb`, `.rpm`, etc.) instead of only a packaged app directory:
164+
165+
```bash
166+
export SENTRY_DSN="sentry"
167+
export NODE_OPTIONS="--max_old_space_size=8192"
168+
169+
npm install
170+
npm run make
171+
```
172+
173+
Common output paths:
174+
175+
- `out/` for packaged app output
176+
- `out/make/` for installer artifacts
177+
178+
### Override the k6 binary used by k6 Studio
179+
180+
This repository currently loads k6 from packaged resources, not from a `PATH` lookup or env var.
181+
If you need to test with a custom k6 build, replace the bundled binary in `resources` before packaging:
182+
183+
- Linux:
184+
- `resources/linux/x86_64/k6`
185+
- `resources/linux/arm64/k6`
186+
- macOS:
187+
- `resources/mac/x86_64/k6`
188+
- `resources/mac/arm64/k6`
189+
- Windows:
190+
- `resources/win/x86_64/k6.exe`
191+
192+
Example (Linux x86_64):
193+
194+
```bash
195+
cp ./k6 resources/linux/x86_64/k6
196+
chmod +x resources/linux/x86_64/k6
197+
```
198+
199+
After replacing the binary, run `npm run package` or `npm run make` to include it in your local build.

0 commit comments

Comments
 (0)