status-desktop/build-linux.sh
Michael Bradley, Jr 37c51cc25f build: use same container as Jenkins CI for local packaged builds on Linux
Make the docker-related logic for doing a local packaged build on Linux match
with the Jenkins CI build for Linux.

Also fix the problems with packaged builds for Linux (local or CI) where
gstreamer errors were displayed in the terminal shortly after app start/login
and there was no sound output.
2021-04-27 13:49:46 -05:00

18 lines
510 B
Bash
Executable File

#!/bin/bash
# This script assumes $PWD is the same dir in which this script is located
# Helps avoid permissions problems with `jenkins` user in docker container when
# making a local packaged build
git clean -dfx
docker run -it --rm \
--cap-add SYS_ADMIN \
--security-opt apparmor:unconfined \
--device /dev/fuse \
-u jenkins:$(getent group $(whoami) | cut -d: -f3) \
-v "${PWD}:/status-desktop" \
-w /status-desktop \
statusteam/nim-status-client-build:1.0.2 \
./docker-linux-app-image.sh