Skip to content

Commit c4c0e43

Browse files
committed
Set the default swiftly home and binary locations on macOS to ~/.swiftly
1 parent 033761b commit c4c0e43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/MacOSPlatform/MacOS.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ public struct MacOS: Platform {
1515

1616
public var appDataDirectory: URL {
1717
FileManager.default.homeDirectoryForCurrentUser
18-
.appendingPathComponent("Library/Application Support", isDirectory: true)
18+
.appendingPathComponent(".swiftly", isDirectory: true)
1919
}
2020

2121
public var swiftlyBinDir: URL {
2222
SwiftlyCore.mockedHomeDir.map { $0.appendingPathComponent("bin", isDirectory: true) }
2323
?? ProcessInfo.processInfo.environment["SWIFTLY_BIN_DIR"].map { URL(fileURLWithPath: $0) }
2424
?? FileManager.default.homeDirectoryForCurrentUser
25-
.appendingPathComponent("Library/Application Support/swiftly/bin", isDirectory: true)
25+
.appendingPathComponent(".swiftly/bin", isDirectory: true)
2626
}
2727

2828
public var swiftlyToolchainsDir: URL {

0 commit comments

Comments
 (0)