2022-11-14 13:40:53 +00:00
|
|
|
# escape=`
|
|
|
|
|
2023-08-26 10:59:57 +00:00
|
|
|
FROM "registry.freedesktop.org/gstreamer/gstreamer/amd64/windows:2023-08-24.0-main"
|
2022-11-14 13:40:53 +00:00
|
|
|
|
|
|
|
# Make sure any failure in PowerShell is fatal
|
|
|
|
ENV ErrorActionPreference='Stop'
|
|
|
|
SHELL ["powershell","-NoLogo", "-NonInteractive", "-Command"]
|
|
|
|
|
2023-03-06 11:16:30 +00:00
|
|
|
ARG DEFAULT_GST_BRANCH="1.22"
|
|
|
|
ARG DEFAULT_GTK_BRANCH="4.8.2"
|
2022-11-14 13:40:53 +00:00
|
|
|
ARG RUST_VERSION="invalid"
|
|
|
|
|
|
|
|
RUN choco install -y pkgconfiglite nasm llvm
|
|
|
|
|
|
|
|
# https://stackoverflow.com/a/50716450
|
|
|
|
RUN setx PATH '%PATH%;C:\Program Files\NASM;C:\gst-install\bin;c:\Program Files\gettext-iconv\bin'
|
|
|
|
ENV PKG_CONFIG_PATH="C:\gst-install\lib\pkgconfig"
|
|
|
|
|
2023-08-26 10:59:57 +00:00
|
|
|
COPY install_gst.ps1 install_gtk.ps1 C:\
|
2022-11-14 13:40:53 +00:00
|
|
|
RUN C:\install_gst.ps1
|
|
|
|
RUN C:\install_gtk.ps1
|
|
|
|
|
|
|
|
RUN Invoke-WebRequest -Uri https://win.rustup.rs/x86_64 -OutFile C:\rustup-init.exe
|
|
|
|
RUN C:\rustup-init.exe -y --profile minimal --default-toolchain $env:RUST_VERSION
|
|
|
|
|
|
|
|
RUN Invoke-WebRequest -Uri https://github.com/mlocati/gettext-iconv-windows/releases/download/v0.21-v1.16/gettext0.21-iconv1.16-shared-64.exe -OutFile C:\gettext0.21.exe
|
|
|
|
RUN C:\gettext0.21.exe /SILENT
|