From a790aaca3b9f3fcedac95152d51c01a4cef6bf87 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Fri, 1 Sep 2023 18:04:38 -0700 Subject: [PATCH] chore: Grab latest version dynamically, add to /tmp/ and delete when finished. --- Containerfile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Containerfile b/Containerfile index 5141f34..2e8ebc4 100644 --- a/Containerfile +++ b/Containerfile @@ -2,7 +2,7 @@ FROM quay.io/toolbx-images/ubuntu-toolbox:22.04 as obs-studio-portable LABEL com.github.containers.toolbox="true" \ usage="This image is meant to be used with the toolbox or distrobox command" \ - summary="OBS" \ + summary="OBS Studio Portable" \ maintainer="jorge.castro@gmail.com" COPY ./extra-packages /extra-packages @@ -13,7 +13,12 @@ RUN apt-get update && \ $(cat extra-packages | xargs) && \ rm -rd /var/lib/apt/lists/* -RUN wget "https://github.com/wimpysworld/obs-studio-portable/releases/download/r23173/obs-portable-29.1.3-r23173-ubuntu-$(lsb_release -rs).tar.bz2" -RUN tar xvf obs-portable-29.1.3-r23173-ubuntu-$(lsb_release -rs).tar.bz2 - -RUN rm /extra-packages +# Install OBS Studio Portable +RUN curl \ + $(curl -s https://api.github.com/repos/wimpysworld/obs-studio-portable/releases/latest | \ + jq -r ".assets[] | select(.name | test(\"ubuntu-$(lsb_release -rs).tar.bz2\")) | .browser_download_url") \ + --create-dirs -o /tmp/obs_portable/latest.tar.bz2 && \ + tar xvf /tmp/obs_portable/latest.tar.bz2 && \ + /tmp/obs_portable/latest/obs-dependencies && \ + /tmp/obs_portable/latest/obs-portable && \ + rm -rf /tmp/obs_portable