chore(docs): improve sidecar target script

This commit is contained in:
Lucas Nogueira 2021-09-29 19:50:53 -03:00
parent f09a13a978
commit 4bd1aa690c
No known key found for this signature in database
GPG Key ID: 2714B66BCFB01F7F

View File

@ -28,7 +28,7 @@ Here is a sample to illustrate the configuration, this is not a complete `tauri.
A binary with the same name and a `-$TARGET_TRIPLE` suffix must exist on the specified path. For instance, `"externalBin": ["bin/python"]` requires a `src-tauri/bin/python-x86_64-unknown-linux-gnu` executable on Linux. You can find the current platform's target triple running the following command:
```bash
RUSTC_BOOTSTRAP=1 rustc -Z unstable-options --print target-spec-json
rustc -Vv | grep host | cut -f2 -d' '
```
Here's a Node.js script to append the target triple to a binary: