AquaLower names lowered .dsp files through StoreFileName; pin Windows forms; note limits
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
30b926c776
commit
5a77dc8e83
3 changed files with 35 additions and 2 deletions
|
|
@ -47,8 +47,9 @@ foreach (var spec in args.Skip(2))
|
|||
warnings.AddRange(export.Warnings);
|
||||
}
|
||||
else source = text;
|
||||
File.WriteAllText(Path.Combine(outDir, name + ".dsp"), source);
|
||||
entries.Add(new { name, origin = rel.Replace('\\', '/'), kind = path.EndsWith(".aqua", StringComparison.Ordinal) ? "aqua" : "faust", dsp = name + ".dsp", warnings });
|
||||
var dspFile = StoreFileName.From(name) + ".dsp";
|
||||
File.WriteAllText(Path.Combine(outDir, dspFile), source);
|
||||
entries.Add(new { name, origin = rel.Replace('\\', '/'), kind = path.EndsWith(".aqua", StringComparison.Ordinal) ? "aqua" : "faust", dsp = dspFile, warnings });
|
||||
Console.WriteLine($"{name}: {source.Length} chars from {rel}, {warnings.Count} warnings");
|
||||
}
|
||||
File.WriteAllText(Path.Combine(outDir, "catalog.json"), JsonSerializer.Serialize(entries, new JsonSerializerOptions { WriteIndented = true }));
|
||||
|
|
|
|||
Loading…
Reference in a new issue