mirror of https://github.com/qTox/qTox.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
614 B
24 lines
614 B
#!/usr/bin/env bash |
|
|
|
# SPDX-License-Identifier: GPL-3.0+ |
|
# |
|
# Copyright © 2018-2021 by The qTox Project Contributors |
|
|
|
# Fail out on error |
|
set -exuo pipefail |
|
|
|
# use multiple cores when building |
|
export MAKEFLAGS="-j$(nproc)" |
|
FLATPAK_DESCRIPTOR=$(dirname $(realpath $0))/io.github.qtox.qTox.json |
|
|
|
mkdir -p /flatpak-build |
|
cd /flatpak-build |
|
|
|
# Build the qTox flatpak |
|
flatpak-builder --disable-rofiles-fuse --install-deps-from=flathub --force-clean --repo=qtox-repo build "$FLATPAK_DESCRIPTOR" |
|
|
|
# Create a bundle for distribution |
|
flatpak build-bundle qtox-repo qtox.flatpak io.github.qtox.qTox |
|
|
|
cp qtox.flatpak /qtox |
|
|
|
|