This commit is contained in:
kieran 2024-11-20 16:35:32 +00:00
parent 4a11bad6d9
commit cdafa1d786
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941
2 changed files with 18 additions and 11 deletions

View File

@ -1,4 +1,4 @@
FROM rust:bookworm AS BUILDER FROM rust:bookworm AS builder
WORKDIR /src WORKDIR /src
COPY . . COPY . .
RUN ./debian.sh RUN ./debian.sh

View File

@ -1,21 +1,28 @@
#!/bin/bash #!/bin/bash
apt update apt update && apt install -y \
apt install -y \
build-essential \ build-essential \
pkg-config \ pkg-config \
libavcodec-dev \
libavformat-dev \
libavdevice-dev \
libavutil-dev \
libavfilter-dev \
libswresample-dev \
libswscale-dev \
libx264-dev \ libx264-dev \
libwebp-dev \ libwebp-dev \
libssl-dev \ libssl-dev \
libpipewire-0.3-dev \ libpipewire-0.3-dev \
libpulse-dev \ libpulse-dev \
libpng-dev \ libpng-dev \
libasound2-dev libasound2-dev \
libclang-dev \
nasm
git clone --single-branch --branch release/7.1 https://git.v0l.io/ffmpeg/FFmpeg.git && \
cd FFmpeg && \
./configure \
--disable-programs \
--disable-doc \
--enable-gpl \
--enable-libx264 \
--enable-libwebp \
--disable-postproc \
--enable-static \
--disable-shared && \
make -j$(nproc) install
export CARGO_FEATURE_STATIC=1
cargo install xbuild cargo install xbuild
x build --release x build --release