Giter VIP home page Giter VIP logo

Comments (9)

hongquan avatar hongquan commented on August 16, 2024 2

After so many effort, CoBang is already published to FlatHub: https://github.com/flathub/vn.hoabinh.quan.CoBang

Release v0.4.0 is being built and should be available soon.

from cobang.

nils2614 avatar nils2614 commented on August 16, 2024 1

Yes that'd be awesome! :D
There's some good documentation over here

from cobang.

hongquan avatar hongquan commented on August 16, 2024 1

Submitting app to FlatHub: flathub/flathub#1565

from cobang.

hongquan avatar hongquan commented on August 16, 2024

@nilsoffermann I have never used Flatpak-distributed app before. But I will try to learn and package it at the weekend.

from cobang.

jeteokeeffe avatar jeteokeeffe commented on August 16, 2024

I was going to flatpak this up but I couldn't get this working without a flatpak on Fedora 32.

So, maybe I'll save you some time with parts of flatpak manifest already built. believe the python pip dependency is complete, maybe you want to restrict on pip versions (the dependency generator doesn't support poetry).

cat com.github.hongquan.CoBang.json
{
    "app-id": "com.github.hongquan.cobang",
    "runtime": "org.gnome.Platform",
    "runtime-version": "3.36",
    "sdk": "org.gnome.Sdk",
    "command": "cobang",
    "finish-args": [
        "--socket=wayland"
    ],
    "modules": [
        {
            "name": "cobang",
            "sources": [
                "cobang-deps.json",
                {
                    "type": "github",
                    "url": "https://github.com/hongquan/CoBang.git",
                    "commit": "c491f6b4b6cec1fd3080bfc6fe9913bc63284ee9"
                }
            ]
        }
    ]
}
  1. Command will build the python dependencies
  2. Command will build the flatpak

https://github.com/flatpak/flatpak-builder-tools/tree/master/pip

python flatpak-pip-generator \
	pycairo \
	regex \
	pygobject \
	toml \
	typed-ast \
	wcwidth \
	black \
	logbook \
	pygobject-stubs \
	pytest \
	single-version \
	zbar-py \
	--output cobang-deps

flatpak-builder --force-clean --user --install --install-deps-from=flathub flatpak-build com.github.hongquan.CoBang.json

from cobang.

hongquan avatar hongquan commented on August 16, 2024

Thanks, I'm trying to Flatpak, too. But it turns out that it has some disadvantage:

  • The Python version is limited by the Sdk provided by Flatpak. The latest one provides Python 3.7, while if we build as *.deb for Ubuntu 20.04, we can use Python 3.8 (and hence, can drop some dependencies, whose feature is already provided by Python 3.8).

  • The developer (author) has to do more building job. For example, my app is using one utility from Cheese. If package as *.deb, I just specify gir1.2-cheese-3.0 in my dependency list, but for Flatpak, I am having to instruct Flatpak to build Cheese from source!

from cobang.

lightonflux avatar lightonflux commented on August 16, 2024

The Python version is limited by the Sdk provided by Flatpak.

Which SDK and version are you referring to?

from cobang.

hongquan avatar hongquan commented on August 16, 2024

@lightonflux I use the latest one. Here are what in my machine:

❯ flatpak list
Name                                                   Application ID                                  Version            Branch            Installation
Foliate                                                com.github.johnfactotum.Foliate                 2.2.0              stable            system
default                                                org.freedesktop.Platform.GL.default                                19.08             system
Intel                                                  org.freedesktop.Platform.VAAPI.Intel                               19.08             system
openh264                                               org.freedesktop.Platform.openh264                                  2.0               system
Fractal                                                org.gnome.Fractal                               4.2.2              stable            system
GNOME Application Platform version 3.36                org.gnome.Platform                                                 3.36              system
GNOME Software Development Kit version 3.36            org.gnome.Sdk                                                      3.36              system
Yaru Gtk Theme                                         org.gtk.Gtk3theme.Yaru                                             3.22              system

Now it is possible to build as Flatpak from the source folder. Please checkout master branch of today, then run:

flatpak-builder _build --force-clean vn.hoabinh.quan.CoBang.yaml

to build.

To test, run:

flatpak-builder --run _build vn.hoabinh.quan.CoBang.yaml cobang

I haven't published to FlatHub yet.

from cobang.

hongquan avatar hongquan commented on August 16, 2024

The Flatpak build script is not working if I am running it in an separate, empty folder (when testing before app submission). That is why it is not published to FlatHub yet.

from cobang.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.