Fix: Normalize path separators in skill bundled assets to forward slashes

This fixes cross-platform compatibility issues where skills created on Windows
would have backslashes in bundled asset paths, causing CI failures on Linux.

The build script now normalizes all path separators to forward slashes (/)
regardless of the platform where the skill was created.

Fixes #502
This commit is contained in:
Harald Kirschner
2026-01-05 09:44:52 -08:00
parent b1fac0d0a1
commit f548156161

View File

@@ -172,7 +172,8 @@ function parseSkillMetadata(skillPath) {
} else {
const relativePath = path.relative(skillPath, filePath);
if (relativePath !== "SKILL.md") {
arrayOfFiles.push(relativePath);
// Normalize path separators to forward slashes for cross-platform consistency
arrayOfFiles.push(relativePath.replace(/\\/g, '/'));
}
}
});