• 0 Posts
  • 6 Comments
Joined 2 years ago
cake
Cake day: July 17th, 2024

help-circle



  • 0t79JeIfK01RHyzo@lemmy.mltoLinux@lemmy.ml*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    5 days ago

    It’s easy to build most flatpaks on flathub into bundles from source.

    An example building KDE's weather application from source
    # Setup for building bundles
    sudo apt install flatpak flatpak-builder git
    flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
    flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
    
    # Building flatpak bundles from source code
    git clone https://github.com/flathub/org.kde.kweather 
    cd org.kde.kweather
    flatpak-builder --force-clean --user --install-deps-from=flathub --repo=repo builddir org.kde.kweather.json
    flatpak build-bundle repo org.kde.kweather.flatpak org.kde.kweather
    
    # Installing the build on any device that has completed setup
    flatpak install -y --user ./org.kde.kweather.flatpak
    
    # Running the installed flatpak
    flatpak run org.kde.kweather
    

    The flathub organization account contains everything needed for most applications on flathhub

    https://github.com/flathub

    edit: I write code sometimes, and building projects from source is often a painful process that can feel overwhelming and hopeless at times. I was really impressed when I realized this was possible, and went and built some of my favorite applications from source afterwards.