AFFiNE/apps/electron
2023-05-15 20:34:54 -07:00
..
layers feat(electron): app menu item and hotkey for creating new page (#2267) 2023-05-13 15:45:12 +00:00
resources chore: update icons 2023-05-12 01:06:05 -05:00
scripts fix: app updater not working for internal release (#2377) 2023-05-15 20:34:54 -07:00
tests feat(electron): track router history (#2336) 2023-05-14 23:13:30 -07:00
types feat: electron app (#1586) 2023-03-16 22:58:21 +08:00
.gitignore feat: support google cloud login in client (#1822) 2023-04-11 18:42:36 +00:00
dev-app-update.yml feat: implement latest version updater for macos (#2214) 2023-05-08 13:21:15 -05:00
forge.config.js build: add app bundle id for internal 2023-05-14 22:35:40 -07:00
package.json v0.6.0-canary.2 2023-05-14 23:14:36 -07:00
playwright.config.ts test: add electron test (#1840) 2023-04-24 18:53:36 -05:00
README.md fix: some improvements to electron app (#2089) 2023-04-24 12:53:21 -05:00
tsconfig.json build(electron): add internal release channel (#2309) 2023-05-10 21:42:56 -05:00
tsconfig.node.json test: add electron test (#1840) 2023-04-24 18:53:36 -05:00

AFFiNE Electron App

Development

To run AFFiNE Desktop Client Application locally, run the following commands:

# in repo root
yarn install
yarn dev

# in apps/electron
yarn generate-assets
yarn dev # or yarn prod for production build

Troubleshooting

better-sqlite3 error

When running tests or starting electron, you may encounter the following error:

Error: The module 'apps/electron/node_modules/better-sqlite3/build/Release/better_sqlite3.node'

This is due to the fact that the better-sqlite3 package is built for the Node.js version in Electron & in your machine. To fix this, run the following command based on different cases:

# for running unit tests, we are not using Electron's node:
yarn rebuild better-sqlite3

# for running Electron, we are using Electron's node:
yarn postinstall

Credits

Most of the boilerplate code is generously borrowed from the following