Skip to content

Commit 75141c4

Browse files
committed
Set target explicitly
1 parent cc93630 commit 75141c4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/swiftly/installers/macos.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ async function download() {
2323
"https://download.swift.org/swiftly/darwin/swiftly.pkg",
2424
join(tmpPath, "swiftly.pkg"),
2525
);
26-
await cmd("installer", "-pkg", pkg, "-target", "CurrentUserHomeDirectory");
27-
return "~/.swiftly/bin/swiftly";
26+
27+
const target = join(tmpPath, "bin");
28+
29+
await cmd("installer", "-pkg", pkg, "-target", target);
30+
31+
return target;
2832
}

0 commit comments

Comments
 (0)