AFFiNE/packages/frontend/electron
pengx17 ebb38a42a0
fix: temporary fix for running electron tests (#6576)
a workaround for spawn EINVAL error.
Found this issue according to https://github.com/node-red/node-red/pull/4652

~~In our case the electron app is spawned by playwright. I am still investigating the issue but don't know how long it takes.~~

Upstream fix: https://github.com/microsoft/playwright/pull/30382
2024-04-16 06:57:17 +00:00
..
renderer refactor(core): replace all notification relies on jotai (#6417) 2024-04-02 03:19:07 +00:00
resources fix(electron): add icon for AppImage build (#6257) 2024-03-21 14:29:02 +00:00
scripts fix: temporary fix for running electron tests (#6576) 2024-04-16 06:57:17 +00:00
src fix(electron): close app while on fullscreen should be minimize instead (#6534) 2024-04-15 05:44:58 +00:00
test style: enable import-x/no-duplicates (#6279) 2024-03-25 03:55:33 +00:00
.gitignore refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
dev-app-update.yml refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
forge.config.mjs fix(electron): add icon for AppImage build (#6257) 2024-03-21 14:29:02 +00:00
package.json chore: bump blocksuite (#6566) 2024-04-15 12:59:01 +00:00
project.json refactor(infra): remove old plugin system (#5411) 2023-12-27 02:49:59 +00:00
README.md refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
tsconfig.json fix: runtime issue for electron app (#6306) 2024-03-26 02:04:13 +00:00
tsconfig.node.json feat(electron): define runtimeConfig in esbuild (#6287) 2024-03-25 03:55:26 +00:00
tsconfig.test.json feat(electron): define runtimeConfig in esbuild (#6287) 2024-03-25 03:55:26 +00:00
vitest.config.ts chore(electron): config vitest swc (#6282) 2024-03-25 03:55:23 +00:00

AFFiNE Electron App

Development

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

# in repo root
yarn install
yarn workspace @affine/native build
yarn dev

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

Troubleshooting

Credits

Most of the boilerplate code is generously borrowed from the following