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

[feat] Support ARM64 Windows #4968

Closed
be5invis opened this issue Aug 17, 2022 · 1 comment
Closed

[feat] Support ARM64 Windows #4968

be5invis opened this issue Aug 17, 2022 · 1 comment

Comments

@be5invis
Copy link

Describe the problem

It looks like that Tauri doesn't have ARM64 Windows support, while Electron has that. VSCode is one of the famous examples of Electron applications that supports ARM64 Windows.

Describe the solution you'd like

Add support for ARM64 Windows (Rust triplet being aarch64-pc-windows-msvc).

May need cross-compilation support.

Alternatives considered

No response

Additional context

No response

@FabianLars
Copy link
Member

Unless you add specific rust crates that can't be compiled to arm, you can compile tauri apps to aarch64 just fine. I'll try to add docs for it soon, but for now i'll add the instructions here.
Oh and building on arm is a little tricky because our cli can't be compiled to aarch64 currently (because we do use aforementioned crates in it - ring).

  1. Compiling Tauri apps for Windows currently only works on Windows (no cross-compilation from Linux etc). Also we only officially support the msvc rust toolchain, which is also the only one i used to test building for arm.
  2. Open the Visual Studio Installer, click on "Individual Components" and install the arm64 build tools - As of today the exact name in the english client is MSVC v143 - VS 2022 C++ ARM64 build tools (Latest) (may differ if you still use VS2019).
  3. Add the rust toolchain via rustup toolchain add aarch64-pc-windows-msvc
  4. Build the tauri app npm run tauri build -- --target aarch64-pc-windows-msvc (yarn and pnpm don't need the extra --).
  5. You'll find the app in <src-tauri>/target/release/aarch64-pc-windows-msvc/

Note that if you're using tauri-action (our official github action) then it won't be able to upload the compiled app, as it currently don't support non-default targets, see tauri-apps/tauri-action#243 (i'll get to it soon ™️)

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

No branches or pull requests

2 participants