Skip to content

Instantly share code, notes, and snippets.

@daniel-ciaglia
Last active May 3, 2024 09:38
Show Gist options
  • Save daniel-ciaglia/26ea4ba2e81fb8aef85f3530e6dbdb3d to your computer and use it in GitHub Desktop.
Save daniel-ciaglia/26ea4ba2e81fb8aef85f3530e6dbdb3d to your computer and use it in GitHub Desktop.
Build DevToys for Debian inside docker
# Getting https://devtoys.app/ onto Linux
# run `docker build --output type=local,dest=. .`
# fingers crossed + find your deb in your local path ;-)
# you need `libwebkitgtk-6.0-4` on your machine
# Read more over here: https://github.com/DevToys-app/Publish
# ---------------------------------------------------------------------
FROM mcr.microsoft.com/dotnet/sdk:8.0 as base
# this is expensive, so keep the base
RUN apt update && apt install debhelper dpkg-dev nodejs npm -y
# ---------------------------------------------------------------------
FROM base as builder
# get the latest code
WORKDIR /tmp
RUN git clone https://github.com/DevToys-app/Publish.git
# for the submodules to work, we have to trust them
RUN git config --global --add safe.directory /tmp/Publish
# jump over
WORKDIR /tmp/Publish
RUN mkdir artifacts
# build fully
RUN bash build.sh
# build quick
RUN bash quick_build-gui.sh
# package for deb
RUN cd packaging/deb/devtoys.gui && dpkg-buildpackage -b -uc -us -D
# ---------------------------------------------------------------------
FROM scratch as export
COPY --from=builder /tmp/Publish/packaging/deb/*.deb .
@daniel-ciaglia
Copy link
Author

I would need a cache buster to rebuild the code later, but I hope the team publishes artefacts soon:tm:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment