Ignore:
Timestamp:
Jan 13, 2025, 10:48:36 PM (9 days ago)
Author:
chronos
Message:
  • Modified: Improved flatpak packaging files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Install/flatpak/build.sh

    r97 r108  
    22set -x
    33
    4 tar --exclude='./Install/flatpak/build' --exclude='./Install/flatpak/export' --exclude='./Install/flatpak/.flatpak-builder' --exclude='./lib' --exclude='./Install/flatpak/tunneler.tar.gz' --exclude='./Install/flatpak/flathub' -zcvf tunneler.tar.gz -C ../.. .
    5 
    64BUILD_DIR=build
     5REPO_DIR=repo
    76FLATPAK_ID=net.zdechov.app.Tunneler
    87
    98# Install dependencies
    10 flatpak install flathub org.kde.Sdk//5.15-23.08
    11 flatpak install flathub org.kde.Platform//5.15-23.08
    12 flatpak install flathub org.freedesktop.Sdk.Extension.freepascal//23.08
     9flatpak install --system flathub org.kde.Sdk//5.15-24.08
     10flatpak install --system flathub org.kde.Platform//5.15-24.08
     11flatpak install --system flathub org.freedesktop.Sdk.Extension.freepascal//24.08
     12flatpak install --system flathub org.flatpak.Builder
    1313
    1414# Build
    15 flatpak-builder --force-clean $BUILD_DIR $FLATPAK_ID.yml
    16 
    17 # Build bundle
    18 flatpak build-export export build
    19 flatpak build-bundle export Tunneler.flatpak $FLATPAK_ID
    20 
    21 # Install
    22 flatpak-builder --user --install --force-clean $BUILD_DIR $FLATPAK_ID.yml
     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
    2316
    2417# Run
    2518flatpak run $FLATPAK_ID
     19# Linter
     20flatpak run --command=flatpak-builder-lint org.flatpak.Builder manifest $FLATPAK_ID.yml
     21flatpak run --command=flatpak-builder-lint org.flatpak.Builder repo $REPO_DIR
Note: See TracChangeset for help on using the changeset viewer.