mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Update gen-filenames.js to generate posix paths (#18488)
This commit is contained in:
committed by
Jeremy Apthorp
parent
7f369c3292
commit
911cdd809a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user