Skip to content

Commit

Permalink
Fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
fallaciousreasoning committed May 16, 2023
1 parent 2ad82d8 commit f8a6aee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chromium_presubmit_config.json5
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
"CheckWebDevStyle": [
"components/speedreader/resources/speedreader-desktop.css",
"components/speedreader/resources/third_party/",
"components/webpack/gen-webpack-grd.js",
"components/webpack/gen-webpack-grd\\.js",
"test/data/speedreader/",
]
},
Expand Down
3 changes: 2 additions & 1 deletion components/webpack/gen-webpack-grd.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ function getIncludesString (fileList) {
const relativePath = filePath.replace(targetDir, '')
const fileId = idPrefix + relativePath.replace(/[^a-z0-9]/gi, '_').toUpperCase()
const resourcePath = resourcePathPrefix
? path.join(resourcePathPrefix, relativePath)
// Note: We want to use forwardslash regardless of platform.
? path.posix.join(resourcePathPrefix, relativePath)
: relativePath
return `<include name="${fileId}" file="${filePath}" resource_path="${resourcePath}" use_base_dir="false" type="BINDATA" />`
}).join('\n')
Expand Down

0 comments on commit f8a6aee

Please sign in to comment.