Skip to content

Commit 4825ef2

Browse files
committed
fix: use correct binaryPath on darwin
Uses the correct temporary path on macOS for local development.
1 parent 28d3138 commit 4825ef2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/remote.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,11 @@ export class Remote {
394394
if (this.mode === vscode.ExtensionMode.Production) {
395395
binaryPath = await this.storage.fetchBinary()
396396
} else {
397-
binaryPath = path.join(os.tmpdir(), "coder")
397+
if (os.platform() === "darwin") {
398+
binaryPath = path.join(os.tmpdir(), "coder", "coder")
399+
} else {
400+
binaryPath = path.join(os.tmpdir(), "coder")
401+
}
398402
}
399403
if (!binaryPath) {
400404
throw new Error("Failed to fetch the Coder binary!")

0 commit comments

Comments
 (0)