Skip to content

Commit 66a1c04

Browse files
committed
fix binary arch names
1 parent 173554d commit 66a1c04

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Coder-Desktop/Coder-Desktop/Coder_DesktopApp.swift

+6-1
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,13 @@ class AppDelegate: NSObject, NSApplicationDelegate {
4040
vpn.startWhenReady = true
4141
}
4242
vpn.installSystemExtension()
43+
#if arch(arm64)
44+
let mutagenBinary = "mutagen-darwin-arm64"
45+
#elseif arch(x86_64)
46+
let mutagenBinary = "mutagen-darwin-amd64"
47+
#endif
4348
fileSyncDaemon = MutagenDaemon(
44-
mutagenPath: Bundle.main.url(forResource: "mutagen-darwin-arm64", withExtension: nil)
49+
mutagenPath: Bundle.main.url(forResource: mutagenBinary, withExtension: nil)
4550
)
4651
}
4752

0 commit comments

Comments
 (0)