mirror of
https://github.com/Studio-42/elFinder.git
synced 2026-06-19 07:37:19 +00:00
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:
+1
-1
@@ -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
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user