-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package for Flatpak #2047
base: master
Are you sure you want to change the base?
Package for Flatpak #2047
Conversation
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. <content_rating type="oars-1.1">
<content_attribute id="drugs-alcohol">mild</content_attribute>
<content_attribute id="drugs-narcotics">mild</content_attribute>
<content_attribute id="drugs-tobacco">mild</content_attribute>
<content_attribute id="sex-nudity">mild</content_attribute>
<content_attribute id="sex-themes">mild</content_attribute>
<content_attribute id="language-profanity">moderate</content_attribute>
<content_attribute id="social-info">intense</content_attribute>
<content_attribute id="money-purchasing">intense</content_attribute>
<content_attribute id="money-advertising">intense</content_attribute>
</content_rating> |
is there any point in setting oars ratings to anything other than |
Won't this also play video in some cases? |
Also |
I'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. |
https://github.com/th-ch/youtube-music/assets/16558115/53efdf73-b8fa-4d7b-a235-b96b91ea77fc</image> | ||
</screenshot> | ||
</screenshots> | ||
<releases> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to write this XML manually for each release?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 👍 |
b2e5a98
to
de6db1d
Compare
The app currently uses 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. |
de6db1d
to
b196121
Compare
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.
Here's the changes I made to "linux": {
"icon": "assets/generated/icons/png",
"category": "AudioVideo",
"target": [
"AppImage",
"snap",
"freebsd",
"flatpak",
"deb",
"rpm"
]
},
"flatpak": {
"runtimeVersion": "23.08",
"baseVersion": "23.08",
"useWaylandFlags": true,
"finishArgs": [
"--socket=wayland",
"--socket=fallback-x11",
"--share=ipc",
"--device=dri",
"--socket=pulseaudio",
"--filesystem=xdg-music",
"--share=network",
"--talk-name=org.freedesktop.Notifications",
"--talk-name=org.kde.StatusNotifierWatcher",
"--talk-name=org.gnome.SettingsDaemon.MediaKeys",
"--talk-name=com.canonical.AppMenu.Registrar",
"--talk-name=org.gnome.SessionManager",
"--own-name=org.mpris.MediaPlayer2.chromium.*"
]
}, |
Added flatpak bundle starting in 3.6.1 and later |
Closes #737
This patch adds flatpak support. I built and installed it on my branch with these commands:
pnpm build pnpm electron-builder --linux flatpak flatpak install --bundle 'pack/YouTube Music-3.3.6-x86_64.flatpak'
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!