From 8e94045421ebbd8e56c1dc05a02201b5d3125d8b Mon Sep 17 00:00:00 2001 From: Mihir Samdarshi Date: Fri, 29 Sep 2023 13:09:36 -0700 Subject: [PATCH] feat: add additional info about signing builds and C libraries --- docs/guides/building/cross-platform.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/guides/building/cross-platform.md b/docs/guides/building/cross-platform.md index a4135640443..e0e7a29ff23 100644 --- a/docs/guides/building/cross-platform.md +++ b/docs/guides/building/cross-platform.md @@ -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. @@ -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: