Ignore:
Timestamp:
Nov 11, 2024, 10:16:09 PM (3 days ago)
Author:
chronos
Message:
  • Modified: Build flatpak with GTK2.
Location:
trunk/Install/flatpak
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Install/flatpak

    • Property svn:ignore
      •  

        old new  
        22build
        33export
         4shared-modules
  • trunk/Install/flatpak/build.sh

    r563 r631  
    11#!/bin/bash
     2set -x
    23
    34BUILD_DIR=build
    4 FLATPAK_ID=net.zdechov.app.C-evo
     5REPO_DIR=repo
     6FLATPAK_ID=net.zdechov.app.C_evo
    57
    68# Install dependencies
    7 flatpak install flathub org.kde.Sdk//5.15-23.08
    8 flatpak install flathub org.kde.Platform//5.15-23.08
    9 flatpak install flathub org.freedesktop.Sdk.Extension.freepascal//23.08
     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
     13git clone https://github.com/flathub/shared-modules.git shared-modules
     14(cd shared-modules && git checkout a9112b9c62e2b84db4c2f6c55c9531fd7e8d03c1)
    1015
    1116# Build
    12 flatpak-builder --force-clean $BUILD_DIR $FLATPAK_ID.yml
    13 
    14 # Build bundle
    15 flatpak build-export export build
    16 flatpak build-bundle export C-evo.flatpak $FLATPAK_ID
    17 
    18 # Install
    19 flatpak-builder --user --install --force-clean $BUILD_DIR $FLATPAK_ID.yml
     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
    2018
    2119# Run
    2220flatpak 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 TracChangeset for help on using the changeset viewer.