MeshChatX/scripts/ci/github-apt-linux-packaging.sh
Ivan fabd08f453
feat: improve portable storage handling and announce settings for page nodes
Also some cleanup and various fixes and additions to codebase
2026-07-28 18:07:39 -05:00

18 lines
602 B
Bash
Executable file

#!/usr/bin/env bash
# APT packages needed for Linux Electron packaging (AppImage, deb, rpm, apk) on Debian/Ubuntu or in Dockerfile.build (root).
set -euo pipefail
# shellcheck source=priv.sh disable=SC1091
. "$(dirname "$0")/priv.sh"
_HOST_ARCH="$(uname -m)"
if [ "$_HOST_ARCH" = "x86_64" ]; then
run_priv dpkg --add-architecture i386 || true
fi
run_priv apt-get update -y
_PKGS=(patchelf libopusfile0 espeak-ng zip rpm elfutils fakeroot file)
if [ "$_HOST_ARCH" = "x86_64" ]; then
_PKGS+=("libc6:i386" "libstdc++6:i386")
fi
run_priv apt-get install -y --no-install-recommends "${_PKGS[@]}"