Add setup commands for Mac
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -19,6 +19,7 @@ Source/*.csproj
|
|||||||
*.tlog
|
*.tlog
|
||||||
*.lastbuilddate
|
*.lastbuilddate
|
||||||
*.opendb
|
*.opendb
|
||||||
|
*.DS_Store
|
||||||
|
|
||||||
# NUNIT
|
# NUNIT
|
||||||
*.VisualState.xml
|
*.VisualState.xml
|
||||||
|
|||||||
17
Development/Scripts/Mac/CallBuildTool.sh
Executable file
17
Development/Scripts/Mac/CallBuildTool.sh
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Copyright (c) 2012-2021 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.
|
||||||
|
xbuild /nologo /verbosity:quiet "Source/Tools/Flax.Build/Flax.Build.csproj" /property:Configuration=Release /property:Platform=AnyCPU /target:Build
|
||||||
|
|
||||||
|
# Run the build tool using the provided arguments.
|
||||||
|
#mono --debug --debugger-agent=transport=dt_socket,server=y,address=127.0.0.1:55555 Binaries/Tools/Flax.Build.exe "$@"
|
||||||
|
mono Binaries/Tools/Flax.Build.exe "$@"
|
||||||
12
GenerateProjectFiles.command
Executable file
12
GenerateProjectFiles.command
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo Generating Flax Engine project files...
|
||||||
|
|
||||||
|
# Change the path to the script root
|
||||||
|
cd "`dirname "$0"`"
|
||||||
|
|
||||||
|
# Run Flax.Build to generate project files (also pass the arguments)
|
||||||
|
bash ./Development/Scripts/Mac/CallBuildTool.sh --genproject "$@"
|
||||||
12
PackagePlatforms.command
Executable file
12
PackagePlatforms.command
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo Building and packaging platforms data...
|
||||||
|
|
||||||
|
# Change the path to the script root
|
||||||
|
cd "`dirname "$0"`"
|
||||||
|
|
||||||
|
# Run Flax.Build (also pass the arguments)
|
||||||
|
bash ./Development/Scripts/Mac/CallBuildTool.sh --deploy --deployPlatforms --verbose --log --logFile="Cache/Intermediate/PackageLog.txt" "$@"
|
||||||
Reference in New Issue
Block a user