-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: create a docker image * test * fix * fix * wip * wip * wip * wip * restore strategy and main branch --------- Signed-off-by: Lean Mendoza <leandro@decentraland.org> Co-authored-by: Lean Mendoza <leandro@decentraland.org>
- Loading branch information
1 parent
91e3345
commit 75dd06e
Showing
5 changed files
with
77 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM ubuntu:latest | ||
|
||
RUN apt-get update && apt-get upgrade -y | ||
|
||
RUN apt-get install -y --no-install-recommends \ | ||
xvfb libasound2-dev libudev-dev \ | ||
clang curl pkg-config libavcodec-dev libavformat-dev libavutil-dev libavfilter-dev libavdevice-dev \ | ||
libssl-dev libx11-dev libgl1-mesa-dev libxext-dev | ||
|
||
WORKDIR /app | ||
|
||
COPY exports/decentraland.godot.client.x86_64 \ | ||
exports/decentraland.godot.client.pck \ | ||
exports/libdecentraland_godot_lib.so \ | ||
entry-point.sh \ | ||
/app/ | ||
|
||
RUN chmod +x entry-point.sh | ||
|
||
ENTRYPOINT ["./entry-point.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
/usr/bin/Xvfb -ac :99 -screen 0 1280x1024x24 & | ||
export DISPLAY=:99 | ||
./decentraland.godot.client.x86_64 --rendering-driver opengl3 --avatar-renderer --avatars avatars.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
Put decentraland_godot_lib libraries files here: | ||
- Windows: decentraland_godot_lib.dll | ||
- MacOS: libdecentraland_godot_lib.dylib | ||
- Linux: libdecentraland_godot_lib.so | ||
- Windows: decentraland_godot_lib.dll | ||
- MacOS: libdecentraland_godot_lib.dylib | ||
- Linux: libdecentraland_godot_lib.so | ||
|
||
# Building | ||
First you need to run `cargo build` in `rust/`, then find it on `rust/target/debug`. | ||
|
||
Opening with VSCode you can run the task with `Cmd+Shift+P` or `Control+Shift+P`, write `Run task` and look for your platform when writing `Copy GDExtension Lib`. |