Files
GDevelop/GDJS/scripts/CopyRuntimeToGD.sh
T
Florian Rival 91eb914dcb Add parameter to clear any stopped scene from scene stack when changing scene
Also refactors some parts and add documentation
2015-08-06 17:58:10 +12:00

17 lines
549 B
Bash
Executable File

#Get the destination, or copy by default to release directory
DESTINATION=../../Binaries/Output/Release_Linux/JsPlatform/Runtime/
if [ "$(uname)" == "Darwin" ]; then
DESTINATION=../../Binaries/Output/Release_Darwin/JsPlatform/Runtime/
fi
if [ ! $# -eq 0 ]; then
DESTINATION=$1
fi
#Copy all js files
echo "Copying GDJS and extensions runtime files (*.js) to '$DESTINATION'..."
mkdir -p "$DESTINATION"
cp -R ../Runtime/* "$DESTINATION"
rsync -r -u --include=*.js --include=*/ --exclude=* ../../Extensions/ "$DESTINATION"/Extensions/
echo "Done."