Comments (9)
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.
Yes that'd be awesome! :D
There's some good documentation over here
from cobang.
Submitting app to FlatHub: flathub/flathub#1565
from cobang.
@nilsoffermann I have never used Flatpak-distributed app before. But I will try to learn and package it at the weekend.
from cobang.
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"
}
]
}
]
}
- Command will build the python dependencies
- 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.
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.
The Python version is limited by the Sdk provided by Flatpak.
Which SDK and version are you referring to?
from cobang.
@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.
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)
- Migrate to GTK 4 + Libadwaita HOT 2
- Segmentation fault (core dumped) in Fedora 36 HOT 1
- displayed wifi passwords have max length of 20 characters HOT 1
- Backend 'poetry.masonry.api' is not available. HOT 2
- Not possible to scan more than one QR code HOT 4
- Flatpak: CoBang doesn't memorise window size HOT 7
- GNOME 44 runtime available HOT 1
- does not work on Ubuntu 20.04 (thinkpad P70) HOT 1
- Flatpak can't access gstreamer plugin HOT 6
- Check: Validate appstream file FAIL HOT 8
- Flatpak won't open due to brotli HOT 22
- CoBang seems untranslated HOT 3
- type string GVariant«(i,i)» invalid HOT 4
- install failes `does not have a Release file` on Debian HOT 1
- WM_CLASS and APP_ID is not set to a useful value by the program HOT 15
- URL shown off-screen and not visible unless you scroll down (Bad UX) HOT 4
- Make CoBang work on Ubuntu 24.04 HOT 1
- PPA uses weak encryption HOT 1
- TypeError: object of type `GstLibcameraDevice' does not have property `device_path' HOT 4
- Image modes no longer work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cobang.