mirror of https://github.com/laurent22/joplin.git
Plugins: Fix building plugins on Windows
parent
789aaa6db6
commit
3ac2fe94a4
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue