zcbot/windows-node/Zcbot.WindowsNode/Runtime/SoftwareCatalog.cs

62 lines
1.9 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace Zcbot.WindowsNode;
internal static class SoftwareCatalog
{
internal static IReadOnlyList<SoftwareDefinition> Definitions { get; } =
[
new(
"origin",
"Origin",
"origin",
SoftwarePathKind.Executable,
"ZCBOT_ORIGIN_EXE",
"Origin*.exe",
@"adapters\origin.plot@v2\requirements.txt"),
new(
"ansys",
"ANSYS Mechanical 2024 R2",
"ansys",
SoftwarePathKind.Directory,
"AWP_ROOT242",
@"aisol\bin\winx64\AnsysWBU.exe",
@"adapters\ansys.mechanical.static_structural@v2\requirements.txt"),
new(
"blender",
"Blender",
"blender",
SoftwarePathKind.Executable,
"ZCBOT_BLENDER_EXE",
"blender.exe",
@"adapters\blender.scene.author@v3\requirements.txt"),
new(
"freecad",
"FreeCAD",
"freecad",
SoftwarePathKind.Executable,
"ZCBOT_FREECAD_CMD",
"FreeCADCmd.exe",
@"adapters\freecad.model.author@v1\requirements.txt"),
new(
"cad",
"仿真几何准备STEP",
"cad",
SoftwarePathKind.None,
null,
null,
@"adapters\cad.geometry.prepare@v1\requirements.txt",
"https://pypi.org/simple/"),
new(
"cad2d",
"二维 CAD 工程制图",
"cad2d",
SoftwarePathKind.None,
null,
null,
@"adapters\cad.drawing.author@v1\requirements.txt",
"https://pypi.org/simple/"),
];
internal static SoftwareDefinition ByRuntimeId(string runtimeId) =>
Definitions.Single(item => item.RuntimeId.Equals(runtimeId, StringComparison.Ordinal));
}