AFFiNE icon indicating copy to clipboard operation
AFFiNE copied to clipboard

Release support for arm64 in Linux

Open sergi0g opened this issue 1 year ago • 1 comments

Hello. I have seen that you have released an arm64 version for macOS. The arm64 platform is increasing in popularity the last few years and can also be found on a Raspberry Pi, or other Linux computers/small servers. Since it it possible to run AFFiNE on arm64, could you either release a build for Linux or provide the steps to build one?

sergi0g avatar May 06 '23 11:05 sergi0g

Before we provide an official arm64 build for Linux, you can do the following to build by yourself:

  1. config yarn to make packages NOT using hoist policy & NOT using hard link
    1. yarn config set nmHoistingLimits workspaces
    2. yarn config set nmMode classic
  2. clean up all node_modules : find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +
  3. rerun yarn add
  4. Make using DEBUG=* HOIST_NODE_MODULES=1 BUILD_TYPE=canary yarn workspace @affine/electron make

You should find the bundle under packages/frontend/electron/out.

pengx17 avatar Mar 11 '24 08:03 pengx17