新增3.4版本支持

This commit is contained in:
tianmo committed 2026-09-10 13:53:43 +08:00
1 parent 4c5033d2f9
commit 9635428f78
21 files changed
+5425 -51

No files matched your search

+4 -1
View File
@@ -104,6 +104,7 @@ function chooseRuntimeDir(version, isBinary) {
const major = parseInt(version.split('.')[0], 10);
if (major === 3) {
const minor = parseFloat(version);
if (minor === 3.4) return '3.4';
if (minor <= 3.6) return '3.6';
if (minor <= 3.7 + 0.0001) return '3.7';
return '3.8';
@@ -360,7 +361,9 @@ function collectSpineFiles(roots, validFolders) {
*/
function collectSpineFilesCached(filePath, roots) {
const libRoot = findLibraryRoot(filePath);
const key = libRoot || path.dirname(path.dirname(filePath));
// Outside an Eagle library, sibling asset folders are independent search
// scopes. Sharing their parent as a cache key can return another skeleton.
const key = libRoot || JSON.stringify([...roots].sort());
const now = Date.now();
const cached = fileIndexCache.get(key);
if (cached && now - cached.time < 1500) return cached.files;