Build: fix RPC sendable params and CLI imports

This commit is contained in:
Peter Steinberger
2025-12-09 03:33:16 +01:00
parent a8b26570e0
commit c568284f1b
4 changed files with 17 additions and 10 deletions

View File

@@ -79,14 +79,14 @@ struct VoiceWakeChimeCatalog {
private static let discoveredSoundMap: [String: URL] = {
var map: [String: URL] = [:]
for root in self.searchRoots {
for root in Self.searchRoots {
guard let contents = try? FileManager.default.contentsOfDirectory(
at: root,
includingPropertiesForKeys: nil,
options: [.skipsHiddenFiles])
else { continue }
for url in contents where self.allowedExtensions.contains(url.pathExtension.lowercased()) {
for url in contents where Self.allowedExtensions.contains(url.pathExtension.lowercased()) {
let name = url.deletingPathExtension().lastPathComponent
// Preserve the first match in priority order.
if map[name] == nil {