You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
30 lines
1.0 KiB
Bash
Executable File
30 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
# Fix executable bit for binaries downloaded from GitHub in zip file
|
|
chmod +x ../../../Binaries/Mac/ShaderCompileWorker
|
|
chmod +x ../../../Binaries/Mac/UE4EditorServices.app/Contents/MacOS/UE4EditorServices
|
|
chmod +x ../../../Binaries/Mac/ShaderCompileWorker
|
|
chmod +x ../../../Binaries/Mac/UnrealLightmass
|
|
chmod +x ../../../Binaries/Mac/UnrealPak
|
|
|
|
# Check for case-sensitive file system
|
|
rm -f casetest*
|
|
touch casetestABC
|
|
touch casetestabc
|
|
if [ $(ls casetest* | wc -l) -gt 1 ]; then
|
|
# Case sensitive filesystem.
|
|
for BASE in Content/Editor/Slate Content/Slate Documentation/Source/Shared/Icons; do
|
|
find ../../../$BASE -name "*PNG" | while read PNG_UPPER; do
|
|
png_lower="$(echo "$PNG_UPPER" | sed 's/PNG$/png/')"
|
|
echo "$PNG_UPPER -> $png_lower"
|
|
mv "$PNG_UPPER" "$png_lower"
|
|
done
|
|
done
|
|
fi
|
|
rm -f casetest*
|
|
|
|
# Copy UE4EditorServices to ~/Library/Services
|
|
if [ ! -d ~/Library/Services/UE4EditorServices.app ]; then
|
|
cp -r ../../../Binaries/Mac/UE4EditorServices.app ~/Library/Services/UE4EditorServices.app
|
|
fi
|