SteamDeckHomebrew / decky-plugin-template

A template for quickly creating a decky plugin from scratch
https://deckbrew.xyz
Other
219 stars 107 forks source link

Template - Template Dockerfile for building custom backends via plugin-database CI #1

Closed TrainDoctor closed 2 years ago

TrainDoctor commented 2 years ago

Based on the CI of the decky-plugin-database, this will be a dockerfile that demonstrates to developers how they would build a custom backend that would then be grabbed by decky-plugin-database during it's CI/CD process and bundle it with the plugin before sending it to the store.

Located within the directory backend will be a folder containing the source code for the relevant backend the developer wants to use.

Our dockerfile will look something like this (we will not be using arch latest but libraries that match the Deck's current stable versions once ready)

FROM archlinux:latest

ADD ./backend/ /source
ADD ./build/backend /build

WORKDIR /source
# Build code goes here

Built binaries will end up in the build folder of the docker container, which will then be handled by the CD steps of decky-plugin-database