Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Build Instructions #278

Open
duganchen opened this issue Nov 11, 2023 · 0 comments
Open

Docker Build Instructions #278

duganchen opened this issue Nov 11, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@duganchen
Copy link

duganchen commented Nov 11, 2023

I'd add this to the wiki myself, but I don't have edit access. Anyway, I just wanted to contribute instructions to use Docker to make a Steam Deck-compatible build:

You start with a Dockerfile to build an image that has the build dependencies:

FROM ubuntu:latest

RUN apt-get update && apt-get install build-essential libsdl2-dev python3-yaml python3-pil -y

You build said image:

docker build -t zelda3build .

You start a container from the image, bind-mounting the source directory (with zelda3.sfc) into it as you do so:

docker run -it --rm --mount type=bind,source=/home/dugan/Documents/zelda3,target=/zelda3 zelda3build

Now, running the container, you build the executable, and exit:

cd /zelda3
make
exit

The resulting executable works on a Steam Deck. I checked. The overlay works too, so you can, say, create radial menus to load and save snapshots. You then copy zelda3, zelda3.ini, and zelda3_assets.dat to some directory on your Steam Deck, and then add the zelda3 executable to Steam as a non-Steam game.

@duganchen duganchen added the enhancement New feature or request label Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant