This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
forked from ublue-os/boxkit
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Grab latest version dynamically, add to /tmp/ and delete when …
…finished.
- Loading branch information
Showing
1 changed file
with
10 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |