Fix tests for Jenkins that always build for iOS
All checks were successful
gitea-openium/resgen.swift/pipeline/head This commit is unstable
All checks were successful
gitea-openium/resgen.swift/pipeline/head This commit is unstable
This commit is contained in:
@@ -60,7 +60,11 @@ public extension String {
|
||||
|
||||
func replaceTiltWithHomeDirectoryPath() -> Self {
|
||||
// See NSString.expandingTildeInPath
|
||||
#if os(macOS)
|
||||
replacingOccurrences(of: "~", with: "\(FileManager.default.homeDirectoryForCurrentUser.relativePath)")
|
||||
#else
|
||||
fatalError("This command should run on Mac only")
|
||||
#endif
|
||||
}
|
||||
|
||||
func colorComponent() -> (alpha: String, red: String, green: String, blue: String) {
|
||||
|
||||
Reference in New Issue
Block a user