fix 动态检测

This commit is contained in:
xkeyC 2023-11-22 00:28:14 +08:00
parent 3218d95c26
commit ed12eaf875

View File

@ -97,10 +97,15 @@ class SCLoggerHelper {
if (scInstallPaths.isNotEmpty) { if (scInstallPaths.isNotEmpty) {
// //
for (var fileName in List.from(scInstallPaths)) { for (var v in withVersion) {
for (var v in withVersion) { for (var fileName in List.from(scInstallPaths)) {
await checkAndAddPath( if (fileName.toString().endsWith(v)) {
fileName.toString().replaceAll("\\$v", ""), true); for (var nv in withVersion) {
final nextName =
"${fileName.toString().replaceAll("\\$v", "")}\\$nv";
await checkAndAddPath(nextName, true);
}
}
} }
} }
} }