55# Config
66
77export SCONS=" scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
8- export OPTIONS=" production=yes"
8+ export OPTIONS=" production=yes LINKFLAGS=-s "
99export OPTIONS_MONO=" module_mono_enabled=yes mono_static=yes"
1010export MONO_PREFIX_X86_64=" /root/mono-installs/desktop-linux-x86_64-release"
1111export MONO_PREFIX_X86=" /root/mono-installs/desktop-linux-x86-release"
@@ -34,18 +34,44 @@ if [ "${CLASSICAL}" == "1" ]; then
3434 cp -rvp bin/* /root/out/x64/templates
3535 rm -rf bin
3636
37- export PATH=" ${GODOT_SDK_LINUX_X86 } /bin:${BASE_PATH} "
37+ export PATH=" ${GODOT_SDK_LINUX_X86_32 } /bin:${BASE_PATH} "
3838
39- $SCONS platform=x11 $OPTIONS tools=yes target=release_debug bits=32
39+ $SCONS platform=x11 bits=32 $OPTIONS tools=yes target=release_debug
4040 mkdir -p /root/out/x86/tools
4141 cp -rvp bin/* /root/out/x86/tools
4242 rm -rf bin
4343
44- $SCONS platform=x11 $OPTIONS tools=no target=release_debug bits=32
45- $SCONS platform=x11 $OPTIONS tools=no target=release bits=32
44+ $SCONS platform=x11 bits=32 $OPTIONS tools=no target=release_debug
45+ $SCONS platform=x11 bits=32 $OPTIONS tools=no target=release
4646 mkdir -p /root/out/x86/templates
4747 cp -rvp bin/* /root/out/x86/templates
4848 rm -rf bin
49+
50+ export PATH=" ${GODOT_SDK_LINUX_ARM64} /bin:${BASE_PATH} "
51+
52+ $SCONS platform=x11 arch=arm64 $OPTIONS tools=yes target=release_debug
53+ mkdir -p /root/out/arm64/tools
54+ cp -rvp bin/* /root/out/arm64/tools
55+ rm -rf bin
56+
57+ $SCONS platform=x11 arch=arm64 $OPTIONS tools=no target=release_debug
58+ $SCONS platform=x11 arch=arm64 $OPTIONS tools=no target=release
59+ mkdir -p /root/out/arm64/templates
60+ cp -rvp bin/* /root/out/arm64/templates
61+ rm -rf bin
62+
63+ export PATH=" ${GODOT_SDK_LINUX_ARM32} /bin:${BASE_PATH} "
64+
65+ $SCONS platform=x11 arch=arm $OPTIONS tools=yes target=release_debug
66+ mkdir -p /root/out/arm/tools
67+ cp -rvp bin/* /root/out/arm/tools
68+ rm -rf bin
69+
70+ $SCONS platform=x11 arch=arm $OPTIONS tools=no target=release_debug
71+ $SCONS platform=x11 arch=arm $OPTIONS tools=no target=release
72+ mkdir -p /root/out/arm/templates
73+ cp -rvp bin/* /root/out/arm/templates
74+ rm -rf bin
4975fi
5076
5177# Mono
@@ -71,16 +97,16 @@ if [ "${MONO}" == "1" ]; then
7197 cp -rvp bin/* /root/out/x64/templates-mono
7298 rm -rf bin
7399
74- export PATH=" ${GODOT_SDK_LINUX_X86 } /bin:${BASE_PATH} "
100+ export PATH=" ${GODOT_SDK_LINUX_X86_32 } /bin:${BASE_PATH} "
75101 export OPTIONS_MONO_PREFIX=" ${OPTIONS} ${OPTIONS_MONO} mono_prefix=${MONO_PREFIX_X86} "
76102
77- $SCONS platform=x11 $OPTIONS_MONO_PREFIX tools=yes target=release_debug copy_mono_root=yes bits=32
103+ $SCONS platform=x11 bits=32 $OPTIONS_MONO_PREFIX tools=yes target=release_debug copy_mono_root=yes
78104 mkdir -p /root/out/x86/tools-mono
79105 cp -rvp bin/* /root/out/x86/tools-mono
80106 rm -rf bin
81107
82- $SCONS platform=x11 $OPTIONS_MONO_PREFIX tools=no target=release_debug bits=32
83- $SCONS platform=x11 $OPTIONS_MONO_PREFIX tools=no target=release bits=32
108+ $SCONS platform=x11 bits=32 $OPTIONS_MONO_PREFIX tools=no target=release_debug
109+ $SCONS platform=x11 bits=32 $OPTIONS_MONO_PREFIX tools=no target=release
84110 mkdir -p /root/out/x86/templates-mono
85111 cp -rvp bin/* /root/out/x86/templates-mono
86112 rm -rf bin
0 commit comments