[V3] Flatpak for linux distribution #2026

Closed
opened 2018-08-17 01:37:34 +02:00 by lionirdeadman · 8 comments
lionirdeadman commented 2018-08-17 01:37:34 +02:00 (Migrated from github.com)

Feature request

Select the type of feature you are requesting:

  • Cog
  • Command
  • API functionality
  • Core

Describe your requested feature

Distributing through flatpaks would have many benefits even though it may sound stupid at first :

  • Distribution agnostic installation
  • No Distribution specific issue (example the issue of the Java certificate being wrong on Ubuntu)
  • Sandboxing of Java and python which would ensure the correct versions are installed and configured properly
  • Updates are streamlined
  • Installing multiple versions of red doesn't need any configuration with pyenv or venv

(Snapd or Appimages could also be used potentially to achieve the same results)

# Feature request <!-- This template is for feature requests. Please fill out the following: --> #### Select the type of feature you are requesting: <!-- To check a box, replace the space between the [] with a x --> - [ ] Cog - [ ] Command - [ ] API functionality - [x] Core #### Describe your requested feature Distributing through flatpaks would have many benefits even though it may sound stupid at first : - Distribution agnostic installation - No Distribution specific issue (example the issue of the Java certificate being wrong on Ubuntu) - Sandboxing of Java and python which would ensure the correct versions are installed and configured properly - Updates are streamlined - Installing multiple versions of red doesn't need any configuration with pyenv or venv (Snapd or Appimages could also be used potentially to achieve the same results) <!-- Feel free to describe in as much detail as you wish. If you are requesting a cog to be included in core: - Describe the functionality in as much detail as possible - Include the command structure, if possible - Please note that unless it's something that should be core functionality, we reserve the right to reject your suggestion and point you to our cog board to request it for a third-party cog If you are requesting a command: - Include what cog it should be in and a name for the command - Describe the intended functionality for the command - Note any restrictions on who can use the command or where it can be used If you are requesting API functionality: - Describe what it should do - Note whether it is to extend existing functionality or introduce new functionality -->
mikeshardmind commented 2018-08-17 02:45:12 +02:00 (Migrated from github.com)

A brief look into the packaging process for these has me under the impression we could automate the builds for flatpaks with relative ease. I think it's worth at least considering as once set up, it would not require significant extra work to keep up to date.

A brief look into the packaging process for these has me under the impression we could automate the builds for flatpaks with relative ease. I think it's worth at least considering as once set up, it would not require significant extra work to keep up to date.
palmtree5 commented 2018-08-29 00:13:46 +02:00 (Migrated from github.com)

Seems like a snap would be pretty easy as well

Seems like a snap would be pretty easy as well
Tobotimus commented 2018-09-10 02:20:14 +02:00 (Migrated from github.com)

Freezing for now, this distribution sounds like it has some good qualities but we're gonna focus on pip for now.

Freezing for now, this distribution sounds like it has some good qualities but we're gonna focus on pip for now.
lionirdeadman commented 2018-09-15 07:10:43 +02:00 (Migrated from github.com)

That's understandable. Maybe I can work on it soon. I'm very inexperienced so I wouldn't expect too much from my trials though.

That's understandable. Maybe I can work on it soon. I'm very inexperienced so I wouldn't expect too much from my trials though.
lionirdeadman commented 2018-10-10 05:40:30 +02:00 (Migrated from github.com)

Okay, so I'm not entirely done but most of the work has been, all that's left is cosmetics and things that are out of my control, I'll publish the script and other things needed after we make a decision since I don't know where to put the code.

So depending on if we want to publish to Flathub.org (which would be great in my opinion), we have 2 options :

  1. Publish Flatpak bundles in the releases
    This allows the great compatibility that Flatpak offers but it does mean that people have to download the Flatpak from Github and doesn't offer any extra 'publicity'

  2. Publish Flatpak to Flathub
    This way does mean that I'll need to make further modifications to ensure we make fully reproduceable builds and that we'll most likely need a repo under Flathub's namespace but it also makes it more accessible since it's inside Flathub's repositories which most Linux users use nowadays for cross-distribution programs.

Okay, so I'm not entirely done but most of the work has been, all that's left is cosmetics and things that are out of my control, I'll publish the script and other things needed after we make a decision since I don't know where to put the code. So depending on if we want to publish to Flathub.org (which would be great in my opinion), we have 2 options : 1. Publish Flatpak bundles in the releases This allows the great compatibility that Flatpak offers but it does mean that people have to download the Flatpak from Github and doesn't offer any extra 'publicity' 2. Publish Flatpak to Flathub This way does mean that I'll need to make further modifications to ensure we make fully reproduceable builds and that we'll most likely need a repo under Flathub's namespace but it also makes it more accessible since it's inside Flathub's repositories which most Linux users use nowadays for cross-distribution programs.
mikeshardmind commented 2018-10-15 02:26:48 +02:00 (Migrated from github.com)

Personally, I think until we have a bit more certainty, and stability, we use option 1 (bundle in releases)

This isn't ideal, as already stated, but until we have more testing with it, I wouldn't want to publish to flathub to ensure the same level of reliability we already expect from our stable releases from it, while still keeping with another set of standards (flatpak's)

This would likely mean if you have a flatpak script that is ready for use now, we could look at 3.1 or 3.2 for publishing on flathub, and have the script available on the development version until then.

We're exceptionally close to 3.0 stable now, so if this will involve changes to the bot, this will not work with 3.0, even if grabbable from GitHub. (Though, from my understanding of flatpak, it shouldn't)

Personally, I think until we have a bit more certainty, and stability, we use option 1 (bundle in releases) This isn't ideal, as already stated, but until we have more testing with it, I wouldn't want to publish to flathub to ensure the same level of reliability we already expect from our stable releases from it, while still keeping with another set of standards (flatpak's) This would likely mean if you have a flatpak script that is ready for use now, we could look at 3.1 or 3.2 for publishing on flathub, and have the script available on the development version until then. We're exceptionally close to 3.0 stable now, so if this will involve changes to the bot, this will not work with 3.0, even if grabbable from GitHub. (Though, from my understanding of flatpak, it shouldn't)
lionirdeadman commented 2018-10-15 03:45:19 +02:00 (Migrated from github.com)

Alright, I've outlined the current issues and improvements on my current progress in #2242.

Alright, I've outlined the current issues and improvements on my current progress in #2242.
Owner

Eigene Distributionspakete (Debian/Flatpak) zu pflegen lohnt sich für dieses Repo nicht. Die Installation läuft über pip/venv, und Releases und CI laufen über die Forgejo-Workflows. Deshalb schließe ich das Issue.


Generated by Claude Code

Eigene Distributionspakete (Debian/Flatpak) zu pflegen lohnt sich für dieses Repo nicht. Die Installation läuft über pip/venv, und Releases und CI laufen über die Forgejo-Workflows. Deshalb schließe ich das Issue. --- _Generated by [Claude Code](https://claude.ai/code)_
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#2026
No description provided.