Files
GDevelop/GDJS/scripts/CopyRuntimeToGD.bat
T
Lizard-13 0987ca8b3e Fix GDJS CopyRuntimeToGD script on Windows when using path with spaces
Fix xcopy crashes with an "Invalid number of parameters" error
2017-07-12 00:15:21 +02:00

15 lines
585 B
Batchfile

::This script copies the runtimes files (i.e: the javascript files located into the Runtime
::folder and in the Extensions folder) to the GDevelop folder.
@echo off
cd /d %~dp0
set destDir=%1
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
echo ✅ Copied GDJS and extensions runtime files (*.js) to '%destDir%'.