Skip to content

Commit fc4a449

Browse files
authored
Add instructions to build for arm on windows (tauri-apps#885)
* Add instructions to build for arm-windows * Update windows.md
1 parent 68a7c57 commit fc4a449

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

docs/guides/building/windows.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,24 @@ To build and bundle your Tauri application into a single executable simply run t
1414

1515
It will build your Frontend, compile the Rust binary, collect all external binaries and resources and finally produce neat platform-specific bundles and installers.
1616

17-
:::info 32-bit Windows
17+
## Building for 32-bit or ARM
1818

19-
The Tauri CLI compiles your executable using your machine's architecture by default. Assuming that you're developing on a 64-bit machine, the CLI will produce 64-bit applications. If you need to support 32-bit machines, you can compile your application with a **different** [Rust target][platform support] using the `--target` flag:
19+
The Tauri CLI compiles your executable using your machine's architecture by default. Assuming that you're developing on a 64-bit machine, the CLI will produce 64-bit applications.
20+
21+
If you need to support **32-bit** machines, you can compile your application with a **different** [Rust target][platform support] using the `--target` flag:
2022

2123
```powershell
2224
tauri build --target i686-pc-windows-msvc
2325
```
2426

25-
By default Rust only installs toolchains for your machine's target, so you need to install the 32-bit Windows toolchain first: `rustup target add i686-pc-windows-msvc`. You can get a full list of Rust targets by running `rustup target list`.
27+
By default Rust only installs toolchains for your machine's target, so you need to install the 32-bit Windows toolchain first: `rustup target add i686-pc-windows-msvc`.
2628

27-
:::
29+
If you need to build for **ARM64** you first need to install additional build tools. To do this, open `Visual Studio Installer`, click on "Modify", and in the "Individual Components" tab install the "C++ ARM64 build tools". At the time of writing, the exact name in VS2022 is `MSVC v143 - VS 2022 C++ ARM64 build tools (Latest)`.
30+
Now you can add the rust target with `rustup target add aarch64-pc-windows-msvc` and then use above mentioned method to comile your app:
31+
32+
```powershell
33+
tauri build --target aarc64-pc-windows-msvc
34+
```
2835

2936
## Supporting Windows 7
3037

@@ -37,10 +44,6 @@ Additionally, to use the Notification API in Windows 7, you need to enable the `
3744
tauri = { version = "1", features = [ "windows7-compat" ] }
3845
```
3946

40-
## Distributing a 32-bit Executable
41-
42-
The Tauri CLI compiles your executable using your machine's architecture by default. You can target a different architecture using the `target` argument. For example, to generate an installer for the x86 architecture, you can execute `tauri build --target i686-pc-windows-msvc` (you will first need to install the _i686-pc-windows-msvc_ target by running `rustup target add i686-pc-windows-msvc`). You can see the list of available targets running `rustup target list`.
43-
4447
## Webview2 Installation Options
4548

4649
The Windows Installer by default downloads the Webview2 bootstapper and executes it if the runtime is not installed. Alternatively, you can embed the bootstrapper, embed the offline installer, or use a fixed Webview2 runtime version. See the following table for a comparison between these methods:

0 commit comments

Comments
 (0)