Skip to content

Commit

Permalink
support web
Browse files Browse the repository at this point in the history
  • Loading branch information
myin142 committed Oct 18, 2024
1 parent ce351b8 commit a9709f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ RUN dnf install -y \
libudev-devel \
gcc-c++ \
libstdc++-static \
libatomic-static
libatomic-static \
python3

RUN dnf -y install --setopt=install_weak_deps=False \
mingw32-gcc mingw32-gcc-c++ mingw32-winpthreads-static mingw64-gcc mingw64-gcc-c++ mingw64-winpthreads-static

RUN git clone https://github.com/emscripten-core/emsdk.git
RUN /emsdk/emsdk install latest

COPY build-template.sh /build-template.sh

ENTRYPOINT ["/build-template.sh"]
3 changes: 3 additions & 0 deletions build-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ if [ ${#ENCRYPTION_KEY} -ne 64 ]; then
exit 1
fi

/emsdk/emsdk activate latest
source /emsdk/emsdk_env.sh

if [ ! -d godot ]; then
git clone -b "$GODOT_VERSION-stable" --single-branch https://github.com/godotengine/godot.git
fi
Expand Down

0 comments on commit a9709f8

Please sign in to comment.