diff --git a/README.md b/README.md index 39ab5ae..450e011 100644 --- a/README.md +++ b/README.md @@ -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 +``` \ No newline at end of file diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 026ff1b..9c70313 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -43,7 +43,7 @@ }, "resources": [], "shortDescription": "", - "targets": "all", + "targets": ["deb", "msi", "app", "dmg", "updater"], "windows": { "certificateThumbprint": null, "digestAlgorithm": "sha256",