Update gen-filenames.js to generate posix paths (#18488)
This commit is contained in:
parent
7f369c3292
commit
911cdd809a
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ const main = async () => {
|
||||||
// Remove whitespace
|
// Remove whitespace
|
||||||
.map(line => line.trim())
|
.map(line => line.trim())
|
||||||
// Get the relative path
|
// Get the relative path
|
||||||
.map(line => path.relative(rootPath, line))
|
.map(line => path.relative(rootPath, line).replace(/\\/g, '/'))
|
||||||
// Only care about files in //electron
|
// Only care about files in //electron
|
||||||
.filter(line => !line.startsWith('..'))
|
.filter(line => !line.startsWith('..'))
|
||||||
// Only care about our own files
|
// Only care about our own files
|
||||||
|
|
Loading…
Reference in a new issue