Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
chore: Grab latest version dynamically, add to /tmp/ and delete when …
Browse files Browse the repository at this point in the history
…finished.
  • Loading branch information
KyleGospo committed Sep 2, 2023
1 parent 003e7f3 commit a790aac
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]"

COPY ./extra-packages /extra-packages
Expand All @@ -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

0 comments on commit a790aac

Please sign in to comment.