fix: restore mac app build
parent
2ef2136c2c
commit
56cb415509
|
|
@ -219,7 +219,7 @@ struct CritterStatusLabel: View {
|
||||||
switch self.gatewayStatus {
|
switch self.gatewayStatus {
|
||||||
case .failed, .stopped:
|
case .failed, .stopped:
|
||||||
!self.isPaused
|
!self.isPaused
|
||||||
case .starting, .restarting, .running, .attachedExisting:
|
case .starting, .running, .attachedExisting:
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -241,7 +241,7 @@ final class GatewayProcessManager {
|
||||||
CommandResolver.projectRootPath()
|
CommandResolver.projectRootPath()
|
||||||
}
|
}
|
||||||
|
|
||||||
private static func readGatewayLog(path: String, limit: Int) -> String {
|
private nonisolated static func readGatewayLog(path: String, limit: Int) -> String {
|
||||||
guard FileManager.default.fileExists(atPath: path) else { return "" }
|
guard FileManager.default.fileExists(atPath: path) else { return "" }
|
||||||
guard let data = try? Data(contentsOf: URL(fileURLWithPath: path)) else { return "" }
|
guard let data = try? Data(contentsOf: URL(fileURLWithPath: path)) else { return "" }
|
||||||
let text = String(data: data, encoding: .utf8) ?? ""
|
let text = String(data: data, encoding: .utf8) ?? ""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue