#!/usr/bin/env bash # Shared with .gitea/workflows/build.yml and .gitea/workflows/release.yml -- # both need the exact same Linux build dependencies. Edit once, here. set -euo pipefail # Non-interactive, or a self-hosted Debian runner hangs forever: after an # install, needrestart asks which daemons to restart ("1. postfix.service # 2. none of the above") and waits on a terminal CI does not have. That # stalled the v0.1.2 Linux release job on 2026-10-05. NEEDRESTART_MODE=a # answers it; DEBIAN_FRONTEND covers debconf prompts. Passed through sudo # explicitly, since sudo drops the caller's environment by default. APT=(sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get) "${APT[@]}" update -qq "${APT[@]}" install -y -qq cmake ninja-build libobs-dev libcurl4-openssl-dev