Futura-Py / weather

Coming soon
MIT License
5 stars 1 forks source link

Make Linux distribution #10

Open Moosems opened 1 year ago

Moosems commented 1 year ago

Snaps or FlatPaks workflows need to be added

im-coder-lg commented 1 year ago

As @rdbende said, I hate snaps too. They are slow as heck. But for a start, we could add both Snaps and Flatpaks till we figure out proper packaging for DEBs and RPMs. I'll try researching today, busy with a lot of work yesterday.

Also, where is the Gitpod Configuration? I needed that!

im-coder-lg commented 1 year ago

Phew found it!

im-coder-lg commented 1 year ago

Let's start with snaps for now. Then we will progress to flatpaks

im-coder-lg commented 1 year ago

The latest builds for Linux have a glibc version lock. It needs version 2.35 of glibc, so it is NOT backwards-compatible with previous versions of Ubuntu before 22.04, i.e. 20.04, which is what Zorin OS uses(I'm back to this). We need to figure out a way to make the executable work with older Ubuntu versions, by perhaps building it in an older version.

Moosems commented 1 year ago

You can probably do it with an env variable. Check the PyInstaller docs.

im-coder-lg commented 1 year ago

This reply just proves my point. It is better to use an older Linux distro, like the last LTS version(Ubuntu 20.04 than 22.04) than change GLIBC versions since that can really damage your system. If I am not wrong, that is how I wrecked my previous Zorin install, but I installed two versions of Python.

Moosems commented 1 year ago

Ok, pretty much what they said is to use an old docker version and build with that. I would make that only happen on Linux though. They gave a repo as an example but again, only do this on Linux. MacOS bundles work just fine by giving an env var and honestly Windows works fine as they are.

im-coder-lg commented 1 year ago

That's what I did.

im-coder-lg commented 1 year ago

Yeah #13 is primed for review, so can we merge that?

im-coder-lg commented 1 year ago

I tried making a snap package locally. It failed horribly plus I got a headache. Will try packaging again. Can anyone test the app in Fedora and Arch Linux?

HuyHung1408 commented 1 year ago

Screenshot from 2023-05-12 06-56-01 Fedora here

im-coder-lg commented 1 year ago

Phew! Thanks!

im-coder-lg commented 1 year ago

I'm testing flatpaks so I'll tell results later.

rdbende commented 1 year ago

Packaging tkinter apps into Flatpak is really a breeze :)

Moosems commented 1 year ago

Would you teach that we may fish?

im-coder-lg commented 11 months ago

FLATPAKS FREAKIN' WORK! I tested it with the latest build from #14.

I know what to do.

Edit: Oh wait, the requests aren't being sent through.. This is a test build, so could be an issue due to that.

im-coder-lg commented 11 months ago

I'll work on it - mostly it is PyOWM that has got to be missing.