mirror of
https://github.com/github/awesome-copilot.git
synced 2026-02-20 02:15:12 +00:00
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:
@@ -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, '/'));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user