Skip to content

Commit

Permalink
feat: add additional info about signing builds and C libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
mihirsamdarshi authored Sep 29, 2023
1 parent 554733b commit 8e94045
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/guides/building/cross-platform.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Make sure to check the [documentation for GitHub Actions][github actions] to und
## Experimental: Build Windows apps on Linux and macOS
Tauri v1.3 added a new Windows installer type based on the [NSIS] installer framework. In contrast to WiX, NSIS itself can also work on Linux and macOS which makes it possible to build many Tauri apps on non-Windows hosts. Note that this is currently considered highly experimental and may not work on every system or for every project. Therefore it should only be used as a last resort if local VMs or CI solutions like GitHub Actions don't work for you.
Tauri v1.3 added a new Windows installer type based on the [NSIS] installer framework. In contrast to WiX, NSIS itself can also work on Linux and macOS which makes it possible to build many Tauri apps on non-Windows hosts. Note that this is currently considered highly experimental and may not work on every system or for every project. Therefore it should only be used as a last resort if local VMs or CI solutions like GitHub Actions don't work for you. **Note that, at this time, signing cross-platform builds is currently unsupported**
Since Tauri officially only supports the MSVC Windows target, the setup is a bit more involved.
Expand Down Expand Up @@ -251,6 +251,10 @@ Keep in mind that this file is specific to your machine so we don't recommend ch

#### Building the App

If your application has dependencies has bindings to C libraries such as `ring` or `libsqlite3-sys`, building your application cross-platform gets a little trickier, as you will also need to set up the
appropriate environment variables and packages on your system. These may include setting the `CC`, `CXX`, `AR` and other environment variables, although this depend heavily on the set up of your build
environment

Now it should be as simple as adding the target to the `tauri build` command:

<Command name="build --target x86_64-pc-windows-msvc" />
Expand Down

0 comments on commit 8e94045

Please sign in to comment.