mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Fix CopyRuntimeToGD.bat when using path with spaces (#673)
This commit is contained in:

committed by
Florian Rival

parent
721c31adc9
commit
e3b446cee0
@@ -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%.
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user