mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-22 10:21:37 +03:00
0ae5673aaa
fix AF-1334 It seems `session.enableNetworkEmulation({ offline: true });` does not work - https://github.com/electron/electron/issues/21250 implemented using an in-house solution. When turned on: ![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/6805735b-1006-4e51-be46-c047b0f1a82c.png) |
||
---|---|---|
.. | ||
renderer | ||
resources | ||
scripts | ||
src | ||
test | ||
.gitignore | ||
dev-app-update.yml | ||
forge.config.mjs | ||
package.json | ||
project.json | ||
README.md | ||
tsconfig.json | ||
tsconfig.node.json | ||
tsconfig.test.json | ||
vitest.config.ts |
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