Skip to content

Commit 2b111d3

Browse files
committed
fix: proper triples for build script
1 parent 12438e0 commit 2b111d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/desktop/src-tauri/build.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ fn main() {
1010

1111
#[cfg(target_os = "macos")]
1212
fn build_check_permissions() {
13-
let triple = std::env::var("TAURI_ENV_TARGET_TRIPLE")
14-
.unwrap_or_else(|_| "aarch64-apple-darwin".to_string());
13+
let triple = std::env::var("TARGET").unwrap();
1514

1615
let manifest_dir = std::path::Path::new(env!("CARGO_MANIFEST_DIR"));
1716
let swift_src = manifest_dir.join("../../../plugins/permissions/swift/check-permissions.swift");
@@ -26,6 +25,8 @@ fn build_check_permissions() {
2625
.args(["-O", "-o"])
2726
.arg(&dst)
2827
.arg(&swift_src)
28+
// we should theoretically cross compile for the target
29+
// .args(["-target", &triple])
2930
.status()
3031
.expect("failed to run swiftc");
3132

0 commit comments

Comments
 (0)