Plugins: Fix building plugins on Windows

pull/9026/head
Laurent Cozic 2023-10-06 18:04:34 +01:00
parent 789aaa6db6
commit 3ac2fe94a4
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ function readManifest(manifestPath) {
}
function createPluginArchive(sourceDir, destPath) {
const distFiles = glob.sync(`${sourceDir}/**/*`, { nodir: true })
const distFiles = glob.sync(`${sourceDir}/**/*`, { nodir: true, windowsPathsNoEscape: true })
.map(f => f.substr(sourceDir.length + 1));
if (!distFiles.length) throw new Error('Plugin archive was not created because the "dist" directory is empty');