Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flatpak release #107

Open
felix920506 opened this issue Feb 2, 2023 · 5 comments
Open

Flatpak release #107

felix920506 opened this issue Feb 2, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@felix920506
Copy link

Enhancement: Would like to see official Flatpak release. This would make life a lot easier for Linux users.

Flatpaks can be installed on any Linux distro that supports it without requiring apps to be specifically packaged for each individual distro. Flatpaks are also the only way to install apps on the Steam Deck without the use of dev mode (According to info found online).

@jcoffland jcoffland added the enhancement New feature or request label Mar 19, 2023
@marcosfrm
Copy link
Contributor

It does not appear trivial run fah-client in the background:

flatpak/flatpak#118

Here is a crude attempt to only build fah-client using Freedesktop SDK:

# sudo apt install flatpak flatpak-builder
# https://flatpak.org/setup/Debian
# sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
# sudo flatpak install flathub org.freedesktop.Platform//22.08 org.freedesktop.Sdk//22.08
# mkdir -p build-dir
# flatpak-builder --force-clean build-dir wip.yml

app-id: org.foldingathome.fah-client
runtime: org.freedesktop.Platform
runtime-version: '22.08'
sdk: org.freedesktop.Sdk
command: fah-client
finish-args:
  - --share=network
  - --device=dri
modules:
  - name: scons
    buildsystem: simple
    cleanup: ['*']
    sources:
      - type: archive
        url: https://sourceforge.net/projects/scons/files/scons/4.5.2/SCons-4.5.2.tar.gz
        sha256: ce26aac95d350a79a4192196b0beac3cb24f4ccabce0123eb28d3370f576f072
    build-commands:
      - pip3 install --no-index --no-build-isolation --prefix=/app .

  - name: cbang
    buildsystem: simple
    cleanup: ['*']
    sources:
      - type: archive
        url: https://github.com/CauldronDevelopmentLLC/cbang/archive/refs/tags/bastet-v8.2.2.tar.gz
        sha256: 43a5b99e056b37ca6a2185821e806e5be53e33b26d2e03344d053f2ce32468a3
    build-commands:
      - scons
      - mkdir -p /app/tmp/cbang
      - cp -a . /app/tmp/cbang

  - name: fah-client
    buildsystem: simple
    cleanup: ['/tmp']
    build-options:
      env:
        CBANG_HOME: /app/tmp/cbang
    sources:
      - type: archive
        url: https://github.com/FoldingAtHome/fah-client-bastet/archive/refs/tags/v8.2.2.tar.gz
        sha256: 43e329553f2c9223b6eefb316020623676e8becf2be8ea1e8132aaacb877845a
    build-commands:
      - scons
      - install -p -t /app/bin fah-client

https://docs.flatpak.org/en/latest/index.html

@kbernhagen
Copy link
Contributor

It sounds like a flatpack released app is also supposed to be sandboxed.

@marcosfrm
Copy link
Contributor

For sure, but we can open some holes in the sandbox with finish-args:.

@muziqaz
Copy link
Contributor

muziqaz commented Jun 6, 2024

Adding my vote for flatpak. Have fedora, manjaro systems which cannot be used for testing this without going through tar.bz2 route

@kbernhagen
Copy link
Contributor

Won't a flatpak client need to download cores that are built for the flatpak sandbox?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants