Fix CopyRuntimeToGD.bat when using path with spaces (#673)

This commit is contained in:
zachThePerson
2018-09-28 09:42:00 -05:00
committed by Florian Rival
parent 721c31adc9
commit e3b446cee0
2 changed files with 6 additions and 6 deletions

View File

@@ -5,10 +5,10 @@
cd /d %~dp0
set destDir=%1
if "%destDir%"=="" set destDir="..\..\Binaries\Output\Release_Windows\JsPlatform\Runtime"
if [%destDir%]==[] set destDir="..\..\Binaries\Output\Release_Windows\JsPlatform\Runtime"
echo Copying GDJS and extensions runtime files (*.js) to %destDir%...
xcopy "..\Runtime"\* "%destDir%"\* /S /E /D /Y /Q
xcopy "..\..\Extensions"\*.js "%destDir%\Extensions"\*.js /S /E /D /Y /Q /EXCLUDE:FilesExcludedFromCopy
xcopy "..\Runtime"\* %destDir%\* /S /E /D /Y /Q
xcopy "..\..\Extensions"\*.js %destDir%\Extensions\*.js /S /E /D /Y /Q /EXCLUDE:FilesExcludedFromCopy
echo ✅ Copied GDJS and extensions runtime files (*.js) to '%destDir%'.
echo ✅ Copied GDJS and extensions runtime files (*.js) to %destDir%.

View File

@@ -7,10 +7,10 @@ var destFolder2 = path.join(process.cwd(), '..', 'node_modules', 'GDJS-for-web-a
var gdjsScriptsFolder = '../../../GDJS/scripts';
if (isWin) {
shell.exec('CopyRuntimeToGD.bat ' + destFolder, {
shell.exec('CopyRuntimeToGD.bat ' + "\"" + destFolder + "\"", {
cwd: gdjsScriptsFolder,
});
shell.exec('CopyRuntimeToGD.bat ' + destFolder2, {
shell.exec('CopyRuntimeToGD.bat ' + "\"" + destFolder2 + "\"", {
cwd: gdjsScriptsFolder,
});
} else {