@@ -2,36 +2,32 @@ ARG img_version
2
2
FROM godot - mono :${img_version }
3
3
4
4
ARG mono_version
5
- ARG mono_commit
6
5
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 \
8
8
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 && \
11
10
cd emsdk && \
12
11
git checkout a5082b232617c762cb65832429f896c838df2483 && \
13
12
. / 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 & & \
14
13
. / emsdk activate 1.38 .47 - upstream && \
15
14
echo "source /root/emsdk/emsdk_env.sh" >> / r o o t / . bashrc
16
15
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} && \
24
20
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 && \
26
22
cd / root / godot - mono - builds && \
27
23
git checkout 710 b275fbf29ddb03fd5285c51782951a110cdab && \
28
24
python3 patch_emscripten . py && \
29
25
python3 wasm . py configure -- target = runtime && \
30
26
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 && \
32
28
cd / root / godot - mono - builds && \
33
29
python3 bcl . py make -- product wasm && \
34
30
cd / root && \
35
- rm - rf / root / mono / root / godot - mono - builds
31
+ rm - rf / root / $ { mono_version } / root / godot - mono - builds
36
32
37
33
CMD / bin / bash
0 commit comments