Skip to content

Commit 15cea7a

Browse files
committed
Mention manual rebuild step
1 parent 8c5f749 commit 15cea7a

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
@@ -20,7 +20,8 @@ To see it in action:
2020
1. Make sure to run `pnpm install` and `pnpm build:packages` in the root directory of this repo.
2121
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.
2222
The example works with the schema from the [PowerSync + Supabase tutorial](https://docs.powersync.com/integration-guides/supabase-+-powersync#supabase-powersync).
23-
3. `cd` in this directory and run `pnpm start`.
23+
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. Finally, run `pnpm start`.
2425

2526
Apart from the build setup, this example is purposefully kept simple.
2627
To make sure PowerSync is working, you can run `await powersync.get('SELECT powersync_rs_version()');` in the DevTools

0 commit comments

Comments
 (0)