Skip to content

Commit 6343bc0

Browse files
committed
Update electron docs
1 parent 70aa8e0 commit 6343bc0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

demos/example-electron-node/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ To see it in action:
2121
1. Make sure to run `pnpm install` and `pnpm build:packages` in the root directory of this repo.
2222
2. Copy `.env.local.template` to `.env.local`, and complete the environment variables. You can generate a [temporary development token](https://docs.powersync.com/usage/installation/authentication-setup/development-tokens), or leave blank to test with local-only data.
2323
The example works with the schema from the [PowerSync + Supabase tutorial](https://docs.powersync.com/integration-guides/supabase-+-powersync#supabase-powersync).
24-
3. `cd` into this directory. In this mono-repo, you'll have to run `./node_modules/.bin/electron-rebuild` once to make sure `@powersync/better-sqlite3` was compiled with Electron's toolchain.
24+
3. `cd` into this directory. In this mono-repo, you'll have to run `./node_modules/.bin/electron-rebuild` once to make sure `better-sqlite3` was compiled with Electron's toolchain.
25+
Sometimes that doesn't work, you can also go to `node_modules/better-sqlite3` and manually run `HOME=~/.electron-gyp node-gyp rebuild --target=37.0.0 --arch=arm64 --dist-url=https://electronjs.org/headers` (or `--arch=x64` depending on your machine).
2526
4. Finally, run `pnpm start`.
2627

2728
Apart from the build setup, this example is purposefully kept simple.

0 commit comments

Comments
 (0)