Fix build for Windows environment (#3699)

mkdir command in Windows does not have a "-p" option. Creating
the parents seems unnecessary, as the parent folder is the project
root and that should always exist. So simply remove the "-p" option.

Windows uses backslashes as the path separator. Replace backslash
with forward slash to normalize the paths.

Co-authored-by: Andre Wachsmuth <awa@xima.de>
This commit is contained in:
Andre Wachsmuth
2025-08-28 12:09:47 +01:00
committed by GitHub
parent 211c2c0b2d
commit 788daa2ac4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -414,7 +414,7 @@ task('js/extras', function(){
var files = grep(path.join(src, 'js', 'extras'), '\\.js$');
var base, name, result;
for (var i in files) {
name = files[i].replace(/^.+\/([^\/]+)$/, '$1');
name = files[i].replace(/\\/g, "/").replace(/^.+\/([^\/]+)$/, '$1');
if (! name.match(/\.min\./)) {
base = name.replace(/\.js$/, '');
name = 'js/extras/' + name;
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "File manager for web",
"main": "Jakefile.js",
"scripts": {
"build": "mkdir -p ./build && jake -C ./build elfinder"
"build": "mkdir ./build && jake -C ./build elfinder"
},
"repository": {
"type": "git",