@@ -2,36 +2,32 @@ ARG img_version
22FROM godot - mono :${img_version }
33
44ARG mono_version
5- ARG mono_commit
65
7- RUN dnf - y install -- setopt = install_weak_deps = False \
6+ RUN if [ - z "${mono_version}" ] ; then printf "\n\nArgument mono_version is mandatory!\n\n" ; exit 1 ; fi && \
7+ dnf - y install -- setopt = install_weak_deps = False \
88 java - openjdk yasm && \
9- dnf clean all && \
10- git clone https :/ / github . com / emscripten - core / emsdk && \
9+ git clone -- progress https :/ / github . com / emscripten - core / emsdk && \
1110 cd emsdk && \
1211 git checkout a5082b232617c762cb65832429f896c838df2483 && \
1312 . / e m s d k i n s t a l l 1 .3 8 .4 7 - u p s t r e a m & & \
1413 . / emsdk activate 1.38 .47 - upstream && \
1514 echo "source /root/emsdk/emsdk_env.sh" >> / r o o t / . bashrc
1615
17- RUN git clone https ://github.com/mono/mono --branch ${mono_version} --single-branch && \
18- cd / root / mono && \
19- if [ ! - z "${mono_commit}" ] ; then git checkout $ { mono_commit } ; fi && \
20- git submodule update -- init && \
21- git apply - 3 / root / files / patches / mono - unity - Clear - TLS - instead - of - aborting . patch && \
22- git apply - 3 / root / files / patches / mono - pr16636 - wasm - bugfix - and - update . diff && \
23- export MONO_SOURCE_ROOT = / r o o t / mono && \
16+ RUN cp - a / root / files / $ { mono_version} / root && \
17+ cd / root / $ { mono_version} && \
18+ patch - p1 < / r o o t / files/ patches / mono - pr16636 - wasm - bugfix - and - update . diff && \
19+ export MONO_SOURCE_ROOT = / r o o t / $ { mono_version} && \
2420 export make = "make -j" && \
25- git clone https :/ / github . com / godotengine / godot - mono - builds / root / godot - mono - builds && \
21+ git clone -- progress https :/ / github . com / godotengine / godot - mono - builds / root / godot - mono - builds && \
2622 cd / root / godot - mono - builds && \
2723 git checkout 710 b275fbf29ddb03fd5285c51782951a110cdab && \
2824 python3 patch_emscripten . py && \
2925 python3 wasm . py configure -- target = runtime && \
3026 python3 wasm . py make -- target = runtime && \
31- cd / root / mono && git clean - fdx && NOCONFIGURE = 1 . / autogen . sh && \
27+ cd / root / $ { mono_version } && git clean - fdx && NOCONFIGURE = 1 . / autogen . sh && \
3228 cd / root / godot - mono - builds && \
3329 python3 bcl . py make -- product wasm && \
3430 cd / root && \
35- rm - rf / root / mono / root / godot - mono - builds
31+ rm - rf / root / $ { mono_version } / root / godot - mono - builds
3632
3733CMD / bin / bash
0 commit comments