/ linuxy / scripts / build-flatpak.sh
Swadhin Biswas Ci/improve release notes (#41) · 8/28/2026
04d550f
26 lines · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
set -e

echo "=== Building Linuxy Flatpak Package ==="

# Check for flatpak-builder
if ! command -v flatpak-builder &> /dev/null; then
    echo "flatpak-builder is not installed. Install it with:"
    echo "  sudo apt install flatpak-builder"
    echo "  or"
    echo "  sudo dnf install flatpak-builder"
    exit 1
fi

cd "$(dirname "$0")/.."

# Ensure Flathub remote is added
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

echo "Building flatpak..."
flatpak-builder --force-clean --user --install-deps-from=flathub --install build-dir flatpak/com.linuxy.App.yaml 2>&1

echo ""
echo "=== Flatpak build complete ==="
echo "Run with: flatpak run com.linuxy.App"