新增windows支持
This commit is contained in:
1 parent
6837ecada9
commit
bd0771747d
5 files changed
+156
-20
No files matched your search
@@ -39,9 +39,11 @@ EditorProbeResult SpineOutputParser::parse(
|
||||
static const std::regex launcher(R"(Spine Launcher\s+(\d+\.\d+(?:\.\d+)?))");
|
||||
static const std::regex launching(
|
||||
R"((?:Launching:|Starting:)\s*Spine\s+(\d+\.\d+(?:\.\d+)?)(?:\s+([^\r\n]+))?)");
|
||||
// MSVC's std::regex does not implement std::regex_constants::multiline,
|
||||
// so instead of relying on the '^' line anchor with the multiline flag,
|
||||
// search for "Spine <version>" anywhere (regex_search scans the whole text).
|
||||
static const std::regex directEditor(
|
||||
R"(^Spine\s+(\d+\.\d+(?:\.\d+)?)(?:\s+([^\r\n]+))?)",
|
||||
std::regex_constants::multiline);
|
||||
R"(Spine\s+(\d+\.\d+(?:\.\d+)?)(?:\s+([^\r\n]+))?)");
|
||||
|
||||
result.launcherVersion = firstVersion(process.output, launcher);
|
||||
result.editorVersion = firstVersion(process.output, launching, &result.edition);
|
||||
|
||||
Reference in new issue
Block a user