Package for Flatpak #2047
No reviewers
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#2047
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "Grafcube/flatpak-package"
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?
Closes #737
This patch adds flatpak support. I built and installed it on my branch with these commands:
A few things to note, I need to write a separate yml to publish to flathub which repeats a lot of metadata (electron builder doesn't currently have any way to publish to flathub automatically). According to the flatpak app submission guidelines:
I am perfectly fine with maintaining the flatpak myself.
The appstream metadata should probably contain content warnings since YT music also has explicit content. I've left it blank for now. It also needs to be packaged manually since electron builder doesn't yet support adding it (see electron-userland/electron-builder#1993). I'll manually include it in the manifest until that issue is resolved. The appstream file is useful for all linux packages, not just flatpak, which is why I've included it in the PR.
If you don't want to wait, you can checkout my branch and install it yourself with the above commands. Cheers!
You can try using https://hughsie.github.io/oars/generate.html to generate the missing oars data
Here's what I got. I'm unsure if it's accurate since it's only audio and not video.
is there any point in setting oars ratings to anything other than
intense
?we do not have control over youtube's content, so we cannot explicitly set age ratings
Won't this also play video in some cases?
Also
social-info
shouldn't be marked intense, anonymous users can use this appI'm pretty sure the algorithm still works for anonymous users.
This makes me think that it should be the "worst case" for all the fields.
@ -0,0 +21,4 @@
https://github.com/th-ch/youtube-music/assets/16558115/53efdf73-b8fa-4d7b-a235-b96b91ea77fc</image>
</screenshot>
</screenshots>
<releases>
Do we need to write this XML manually for each release?
@ -0,0 +21,4 @@
https://github.com/th-ch/youtube-music/assets/16558115/53efdf73-b8fa-4d7b-a235-b96b91ea77fc</image>
</screenshot>
</screenshots>
<releases>
If you have a sane way of feeding a tool, writing a script that modifies xml is pretty straightforward. Problem usually is the changelog, version number etc.
@ -0,0 +21,4 @@
https://github.com/th-ch/youtube-music/assets/16558115/53efdf73-b8fa-4d7b-a235-b96b91ea77fc</image>
</screenshot>
</screenshots>
<releases>
I used this tool to automatically fetch and populate the release history.
https://jakobdev.codeberg.page/work/app/jdAppStreamEdit/
I didn't have to do anything manually so I think it should be easy enough to make a script to automatically update the file.
Any update on this ? :) Would be really cool to see the app packaged as a Flatpak 👍
The app currently uses
com.github.th_ch.youtube_music
as its app id but according to this, it makes more sense to useio.github.th_ch.youtube_music
. This is probably better suited for a separate issue but maybe all instances of the old app id should be changed?https://docs.flathub.org/docs/for-app-authors/verification/#source-code-hosting-site
Apart from that, I'll try to make a manifest that can be used for submission into flathub whenever I get the time.
Despite my best attempts it's been really complicated to build a flatpak. I think I'm going to give up and just manually update it when I need to. I'm going to leave some information here if anyone else wants to take a crack at it.
pnpm-lock.yaml
to include in the flatpak manifest sources.Here's the changes I made to
package.json
to build a flatpak with the commands in my original comment.Added flatpak bundle starting in 3.6.1 and later
https://github.com/th-ch/youtube-music/releases/tag/v3.6.1
Any plans on publishing the flatpak in the flathub repo?
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.