You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/building/windows.md
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,17 +14,24 @@ To build and bundle your Tauri application into a single executable simply run t
14
14
15
15
It will build your Frontend, compile the Rust binary, collect all external binaries and resources and finally produce neat platform-specific bundles and installers.
16
16
17
-
:::info 32-bit Windows
17
+
## Building for 32-bit or ARM
18
18
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:
20
22
21
23
```powershell
22
24
tauri build --target i686-pc-windows-msvc
23
25
```
24
26
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`.
26
28
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
+
```
28
35
29
36
## Supporting Windows 7
30
37
@@ -37,10 +44,6 @@ Additionally, to use the Notification API in Windows 7, you need to enable the `
37
44
tauri = { version = "1", features = [ "windows7-compat" ] }
38
45
```
39
46
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
-
44
47
## Webview2 Installation Options
45
48
46
49
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