Last active
November 9, 2018 23:03
-
-
Save KellyThomas/92b88c3a22f8c66498135863f6866f36 to your computer and use it in GitHub Desktop.
simple batch file to update my godot repo and build mono binaries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rem Required software is documented at: | |
| rem * https://godot.readthedocs.io/en/3.0/development/compiling/compiling_for_windows.html | |
| rem * https://godot.readthedocs.io/en/3.0/development/compiling/compiling_with_mono.html | |
| rem * http://idiotcoder.com/godot3-csharp-visual-studio-code-windows10/ | |
| cd apps\godot\godot | |
| git checkout master | |
| git pull upstream master | |
| git clean -xdf | |
| call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" | |
| rem glue tool | |
| del bin\*.* /s /q | |
| rmdir /s /q bin | |
| call scons.bat platform=windows tools=yes module_mono_enabled=yes mono_glue=no | |
| bin\godot.windows.tools.64.mono.exe --generate-mono-glue modules/mono/glue | |
| rem editor binary | |
| del bin\*.* /s /q | |
| rmdir /s /q bin | |
| call scons.bat platform=windows tools=yes module_mono_enabled=yes mono_glue=yes | |
| bin\godot.windows.tools.64.mono.exe --generate-cs-api %temp%\build_GodotSharp | |
| msbuild %temp%\build_GodotSharp\GodotSharp.sln /p:Configuration=Release /p:Platform="Any CPU" | |
| robocopy %temp%\build_GodotSharp\GodotSharp\bin\Release\ bin\GodotSharp\Api\ /is | |
| robocopy %temp%\build_GodotSharp\GodotSharpEditor\bin\Release\ bin\GodotSharp\Api\ /is | |
| robocopy bin\ C:\Apps\godot\godot-master-bin\ /s /MIR | |
| echo Build Exports? | |
| pause | |
| del bin\*.* /s /q | |
| rmdir /s /q bin | |
| call scons p=windows target=debug tools=no module_mono_enabled=yes | |
| call scons p=windows target=release tools=no module_mono_enabled=yes | |
| robocopy bin\data.mono.windows.64.debug\ %appdata%\Godot\templates\3.1.alpha.mono\data.mono.windows.64.debug\ /MIR | |
| robocopy bin\data.mono.windows.64.release\ %appdata%\Godot\templates\3.1.alpha.mono\data.mono.windows.64.release\ /MIR | |
| copy bin\godot.windows.debug.64.mono.exe %appdata%\Godot\templates\3.1.alpha.mono\windows_64_debug.exe /y | |
| copy bin\godot.windows.opt.64.mono.exe %appdata%\Godot\templates\3.1.alpha.mono\windows_64_release.exe /y | |
| copy bin\mono-2.0-sgen.dll %appdata%\Godot\templates\3.1.alpha.mono\mono-2.0-sgen.dll /y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment