source: trunk/Install/flatpak/build.sh

Last change on this file was 637, checked in by chronos, 2 days ago
  • Added: AI upscaled C-evo icon to 1024x1024 resolution.
  • Modified: Updated packaging files.
  • Property svn:executable set to *
File size: 911 bytes
Line 
1#!/bin/bash
2set -x
3
4BUILD_DIR=build
5REPO_DIR=repo
6FLATPAK_ID=net.zdechov.app.C-evo
7
8# Install dependencies
9flatpak install --system flathub org.freedesktop.Platform//24.08
10flatpak install --system flathub org.freedesktop.Sdk//24.08
11flatpak install --system flathub org.freedesktop.Sdk.Extension.freepascal//24.08
12flatpak install --system flathub org.flatpak.Builder
13git clone https://github.com/flathub/shared-modules.git shared-modules
14(cd shared-modules && git checkout a9112b9c62e2b84db4c2f6c55c9531fd7e8d03c1)
15
16# Build
17flatpak 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
18
19# Run
20flatpak run $FLATPAK_ID
21
22# Linter
23flatpak run --command=flatpak-builder-lint org.flatpak.Builder manifest $FLATPAK_ID.yml
24flatpak run --command=flatpak-builder-lint org.flatpak.Builder repo $REPO_DIR
Note: See TracBrowser for help on using the repository browser.