diff --git a/script/gen-filenames.js b/script/gen-filenames.js index 6e4a7cb7a7d3..1fec22facd97 100644 --- a/script/gen-filenames.js +++ b/script/gen-filenames.js @@ -68,7 +68,7 @@ const main = async () => { // Remove whitespace .map(line => line.trim()) // Get the relative path - .map(line => path.relative(rootPath, line)) + .map(line => path.relative(rootPath, line).replace(/\\/g, '/')) // Only care about files in //electron .filter(line => !line.startsWith('..')) // Only care about our own files