Skip to content

Commit

Permalink
fix: specific build targets
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjackwills committed Aug 26, 2023
1 parent 99dd3c8 commit 5c9707f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,32 @@ sudo apt install libwebkit2gtk-4.0-dev \
libayatana-appindicator3-dev \
librsvg2-dev
```
### arm64 cross compliation

tauri.conf.json:
```json
"targets": ["deb", "msi", "app", "dmg", "updater"],
```

```shell
rustup target add aarch64-unknown-linux-gnu
sudo apt install gcc-aarch64-linux-gnu
```

nano ~/.cargo/config.toml
```toml
[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"
```

```shell
sudo dpkg --add-architecture arm64

sudo apt-get update && sudo apt-get upgrade -y

sudo apt install libwebkit2gtk-4.0-dev:arm64

export PKG_CONFIG_SYSROOT_DIR=/usr/aarch64-linux-gnu/

cargo tauri build --target aarch64-unknown-linux-gnu
```
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
"resources": [],
"shortDescription": "",
"targets": "all",
"targets": ["deb", "msi", "app", "dmg", "updater"],
"windows": {
"certificateThumbprint": null,
"digestAlgorithm": "sha256",
Expand Down

0 comments on commit 5c9707f

Please sign in to comment.