Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ARM64 build instructions and release #2232

Open
lexcyn opened this issue Oct 11, 2024 · 1 comment
Open

Add ARM64 build instructions and release #2232

lexcyn opened this issue Oct 11, 2024 · 1 comment

Comments

@lexcyn
Copy link

lexcyn commented Oct 11, 2024

Since Electron has native ARM64 support for Windows, it's very easy to create an ARM64 version of Caprine. Simply follow the Electron instructions on how to set up your build environment on your ARM system (ie: install correct arch versions of npm, etc), then you can just change the following in package.json:

"scripts": { "build": "electron-builder",
This will allow you to build and package the ARM64 version:

image

Documentation:

https://learn.arm.com/learning-paths/laptops-and-desktops/electron/how-to-2/
https://www.electronjs.org/docs/latest/tutorial/forge-overview

@ddscentral
Copy link

ddscentral commented Dec 3, 2024

This seems to work for me

export npm_config_arch=arm64
npm install
npm run build
npx electron-builder --win --arm64

Would be helpful to have the ARM build included in package.json though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants