mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-23 02:25:52 -04:00
345f9f1786
The script contains bashisms which fail on systems where sh is symlinked to dash instead of bash.
19 lines
634 B
Bash
Executable File
19 lines
634 B
Bash
Executable File
#!/bin/bash
|
||
#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 "✅ Copied GDJS and extensions runtime files (*.js) to '$DESTINATION'."
|