Last active
May 3, 2024 09:38
-
-
Save daniel-ciaglia/26ea4ba2e81fb8aef85f3530e6dbdb3d to your computer and use it in GitHub Desktop.
Build DevToys for Debian inside docker
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
# 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 . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would need a cache buster to rebuild the code later, but I hope the team publishes artefacts soon:tm: