diff --git a/bin/lando.cmd b/bin/lando.cmd new file mode 100644 index 000000000..20af504c2 --- /dev/null +++ b/bin/lando.cmd @@ -0,0 +1,3 @@ +@echo off + +node "%~dp0\lando" %* diff --git a/components/l337-v4.js b/components/l337-v4.js index a2d3bf784..d95071395 100644 --- a/components/l337-v4.js +++ b/components/l337-v4.js @@ -310,8 +310,8 @@ class L337ServiceV4 extends EventEmitter { file.instructions = file.url ? ['ADD'] : ['COPY']; if (file.owner) file.instructions.push(`--chown=${file.owner}`); if (file.permissions) file.instructions.push(`--chmod=${file.permissions}`); - file.instructions.push(file.url ?? path.join('.', file.target)); - file.instructions.push(process.platform === 'win32' ? file.target : path.resolve('/', file.target)); + file.instructions.push(file.url ?? path.posix.resolve('/', file.target)); + file.instructions.push(path.posix.resolve('/', file.target)); file.instructions = file.instructions.join(' '); }