source: trunk/Install/flatpak/build.sh

Last change on this file was 146, checked in by chronos, 6 months ago
  • Added: Flathub packagin files.
  • Property svn:executable set to *
File size: 762 bytes
Line 
1#!/bin/bash
2set -x
3
4BUILD_DIR=build
5REPO_DIR=repo
6FLATPAK_ID=net.zdechov.app.TransLines
7
8# Install dependencies
9flatpak install --system flathub org.kde.Sdk//5.15-23.08
10flatpak install --system flathub org.kde.Platform//5.15-23.08
11flatpak install --system flathub org.freedesktop.Sdk.Extension.freepascal//23.08
12flatpak install --system flathub org.flatpak.Builder
13
14# Build
15flatpak run org.flatpak.Builder --force-clean --sandbox --user --install --ccache --mirror-screenshots-url=https://dl.flathub.org/media/ --repo=$REPO_DIR $BUILD_DIR $FLATPAK_ID.yml
16
17# Run
18flatpak run $FLATPAK_ID
19
20# Linter
21flatpak run --command=flatpak-builder-lint org.flatpak.Builder manifest $FLATPAK_ID.yml
22flatpak run --command=flatpak-builder-lint org.flatpak.Builder repo $REPO_DIR
Note: See TracBrowser for help on using the repository browser.