|
7 | 7 | export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no redirect_build_objects=no" |
8 | 8 | export OPTIONS="production=yes accesskit_sdk_path=/root/accesskit/accesskit-c" |
9 | 9 | export OPTIONS_MONO="module_mono_enabled=yes" |
| 10 | +export OPTIONS_DOTNET="module_dotnet_enabled=yes" |
10 | 11 | export TERM=xterm |
11 | 12 |
|
12 | 13 | rm -rf godot |
@@ -137,4 +138,62 @@ if [ "${MONO}" == "1" ]; then |
137 | 138 | rm -rf bin |
138 | 139 | fi |
139 | 140 |
|
| 141 | +# .NET |
| 142 | + |
| 143 | +if [ "${DOTNET}" == "1" ]; then |
| 144 | + echo "Starting .NET build for Linux..." |
| 145 | + |
| 146 | + export PATH="${GODOT_SDK_LINUX_X86_64}/bin:${BASE_PATH}" |
| 147 | + |
| 148 | + $SCONS platform=linuxbsd arch=x86_64 $OPTIONS $OPTIONS_DOTNET target=editor |
| 149 | + mkdir -p /root/out/x86_64/tools-dotnet |
| 150 | + cp -rvp bin/* /root/out/x86_64/tools-dotnet |
| 151 | + rm -rf bin |
| 152 | + |
| 153 | + $SCONS platform=linuxbsd arch=x86_64 $OPTIONS $OPTIONS_DOTNET target=template_debug |
| 154 | + $SCONS platform=linuxbsd arch=x86_64 $OPTIONS $OPTIONS_DOTNET target=template_release |
| 155 | + mkdir -p /root/out/x86_64/templates-dotnet |
| 156 | + cp -rvp bin/* /root/out/x86_64/templates-dotnet |
| 157 | + rm -rf bin |
| 158 | + |
| 159 | + export PATH="${GODOT_SDK_LINUX_X86_32}/bin:${BASE_PATH}" |
| 160 | + |
| 161 | + $SCONS platform=linuxbsd arch=x86_32 $OPTIONS $OPTIONS_DOTNET target=editor |
| 162 | + mkdir -p /root/out/x86_32/tools-dotnet |
| 163 | + cp -rvp bin/* /root/out/x86_32/tools-dotnet |
| 164 | + rm -rf bin |
| 165 | + |
| 166 | + $SCONS platform=linuxbsd arch=x86_32 $OPTIONS $OPTIONS_DOTNET target=template_debug |
| 167 | + $SCONS platform=linuxbsd arch=x86_32 $OPTIONS $OPTIONS_DOTNET target=template_release |
| 168 | + mkdir -p /root/out/x86_32/templates-dotnet |
| 169 | + cp -rvp bin/* /root/out/x86_32/templates-dotnet |
| 170 | + rm -rf bin |
| 171 | + |
| 172 | + export PATH="${GODOT_SDK_LINUX_ARM64}/bin:${BASE_PATH}" |
| 173 | + |
| 174 | + $SCONS platform=linuxbsd arch=arm64 $OPTIONS $OPTIONS_DOTNET target=editor |
| 175 | + mkdir -p /root/out/arm64/tools-dotnet |
| 176 | + cp -rvp bin/* /root/out/arm64/tools-dotnet |
| 177 | + rm -rf bin |
| 178 | + |
| 179 | + $SCONS platform=linuxbsd arch=arm64 $OPTIONS $OPTIONS_DOTNET target=template_debug |
| 180 | + $SCONS platform=linuxbsd arch=arm64 $OPTIONS $OPTIONS_DOTNET target=template_release |
| 181 | + mkdir -p /root/out/arm64/templates-dotnet |
| 182 | + cp -rvp bin/* /root/out/arm64/templates-dotnet |
| 183 | + rm -rf bin |
| 184 | + |
| 185 | + export PATH="${GODOT_SDK_LINUX_ARM32}/bin:${BASE_PATH}" |
| 186 | + |
| 187 | + $SCONS platform=linuxbsd arch=arm32 $OPTIONS $OPTIONS_DOTNET target=editor |
| 188 | + mkdir -p /root/out/arm32/tools-dotnet |
| 189 | + cp -rvp bin/* /root/out/arm32/tools-dotnet |
| 190 | + rm -rf bin |
| 191 | + |
| 192 | + $SCONS platform=linuxbsd arch=arm32 $OPTIONS $OPTIONS_DOTNET target=template_debug |
| 193 | + $SCONS platform=linuxbsd arch=arm32 $OPTIONS $OPTIONS_DOTNET target=template_release |
| 194 | + mkdir -p /root/out/arm32/templates-dotnet |
| 195 | + cp -rvp bin/* /root/out/arm32/templates-dotnet |
| 196 | + rm -rf bin |
| 197 | +fi |
| 198 | + |
140 | 199 | echo "Linux build successful" |
0 commit comments