Files
FlaxEngine/Development/Scripts/Linux/CallBuildTool.sh
2024-02-26 19:00:48 +01:00

17 lines
567 B
Bash
Executable File

#!/bin/bash
# Copyright (c) 2012-2024 Wojciech Figat. All rights reserved.
set -e
testfilesize=$(wc -c < 'Source/Logo.png')
if [ $testfilesize -le 1000 ]; then
echo "CallBuildTool ERROR: Repository was not cloned using Git LFS" 1>&2
exit 1
fi
# Compile the build tool.
dotnet msbuild /nologo /verbosity:quiet "Source/Tools/Flax.Build/Flax.Build.csproj" /property:Configuration=Release /target:Restore,Build /property:RestorePackagesConfig=True /p:RuntimeIdentifiers=linux-x64
# Run the build tool using the provided arguments.
Binaries/Tools/Flax.Build "$@"