Flatpak Support #737
Labels
No labels
awaiting-reply
breaking changes
bug
cannot-reproduce
dependencies
documentation
duplicate
electron-issue
enhancement
fix-available
good first issue
help wanted
invalid
javascript
need more information
need rebase
official-youtube-music-issue
plugin request
question
release
security
stale
Status: blocked
typo
wontfix
ytmd-issue
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: YTMD/youtube-music#737
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Would prefer a flatpak distribution option be supported
same here, it would be handy for the steamdeck!
There are 3 competitor apps on Flathub already.
However this is my favorite YouTube Music desktop app and I wish it was there as well.
I created a request for this app in the Flathub forums: https://discourse.flathub.org/t/th-ch-youtube-music/4527
There is also https://github.com/vixalien/muzika coming up to flathub soonish, just for your list.
Is there anyone interested in doing this task?
I strongly believe that for the sake of cross compatibility across all desktop Linux distros, flatpak should be a supported method of installation. But also one thing to be careful of is ensuring plugins like Discord works.
Also adding this link for reference to support using Discord Flatpak, although that's something more for users using the Discord Flatpak to worry about: https://github.com/flathub/com.discordapp.Discord/wiki/Rich-Precense-(discord-rpc)
Github action for building flatpak https://github.com/flatpak/flatpak-github-actions
You actually should use https://github.com/flathub-infra/flatpak-github-actions for flathub - but getting the flatpak building is the first step
I see that this project uses electron-builder for releases. They have a Flatpak build target too, but that doesn't support publishing to Flathub. It would probably be pretty easy to add that build target, though, so that Flatpak users on stuff like immutable Linux distributions would have at least some way of installing.
Currently, ytmdesktop (first link) seems no longer maintained on FlatHub. But doesn't matter cuz I like th-ch/youtube-music more
Is anybody working on this currently? Otherwise, I could probably do it lol: https://www.electron.build/configuration/flatpak.html
I've just opened a PR to add Flatpak support at #2047
any news?
Has this been added to the flathub yet? If not, how do I install the flatpak?
https://github.com/th-ch/youtube-music/pull/2047#issuecomment-2324038574
Partially implemented at
b6687307df
(flatpak single bundle)
Would be nice if this was on flathub. Maybe I can work towards that...
Dropping in to say that I'm on an immutable distro, flatpak is basically my package manager, love this app and a flatpak bundle would be lovely
For now I wrote this script for my personal usage:
feel free to improve it
I made some AI-aided improvements (using aria2 for downloading since wget was slow, and adding an option of putting it on a daily timer):
Currently there is only x86_64. It would be great if aarch64 can be supported
Since the flatpak bundle does not contain version information, it is seemingly impossible to compare the local version with the latest version from a shell script.
BUT I did find a messy workaround 🤣
--
I'll soon update my script
New script:
It is written using Amber, and is much more verbose yet more elegant and safe.
script dependencies:
yq
: a jq preprocessor for yaml filesflatpak
: obviouslystrings
: a utility that reads all ASCII from a binaryonly if you have
bshchk
installed, otherwise its just as safe as bash. also we haven't completely figured out the whole runtime type system and if it is safe yetand amber is also in a very early stage so i'd advise against using it for now, unless you're fine with rewriting your code to update to the next version
well, I meant "safe" as in "safe from programmer mistakes", just like typescript isn't safe if you are not honest with it
What does it take to get the flatpak onto flathub?
When this app will be on flatpak?
There's a flatpak in the latest releases page
It's not on Flathub tho
The current flatpak we have does not allow incremental updates, and I don't think it will be accepted by flathub.
if the app is not in flathub or somewhere like this it is not reliable to install that as it will be not updated i have to do this manually.
I simply have a systemd service that runs this script when my user logs in.
https://github.com/th-ch/youtube-music/issues/737#issuecomment-2789580267