-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Flathub publishing #99
Comments
When the notion-enhancer updates to the latest Notion, this won't be a problem.
If it works, it works. However, for consistency with the other distributions of notion-repackaged and simplicity/reliability of installation, it would be ideal to distribute a binary. As far as I'm aware, Flatpaks are predominantly/often community maintained redistributions of apps (e.g. Spotify), so it wouldn't be unusual, + if we haven't had license problems with other distributions of the notion-enhancer yet I don't see why we would with Flatpak.
Having vanilla Notion repackaged is just as worth having enhanced Notion repackaged - as per my responses above and below this one, if we're distributing one we might as well distribute the other. If Notion eventually does build an official Linux app, ideally that would replace the All our other Linux distributions are split into a vanilla
@tinywrkb we would like to take it over, yes. The low activity here is not a permanent state, just for the near future while I'm busy with my final year. However, until the notion-enhancer does update, I'd prefer to hold off on additional distribution methods - the current range of distribution options covers all supported platforms, any others are just a matter of catering to user preference. |
Thanks for responding.
This not how this works. You need explicit authorization for distributing a proprietary app from its original developer as part of the terms of use or request it. In any case, I'm not going to argue about the legality of this, but I'll just say that I expect that a Flatpak packaging that download unauthorized bundle of repackaged Notion app, with changed or unchanged Notion's sources, will not be approved unless there's explicit authorization from Notion.
Alright, I closed the submission request. |
I know. Sorry, I wasn't very clear in my last message. We do have authorisation to modify and redistribute their app under the notion-enhancer/notion-repackaged project as far as I'm aware (screenshots below are from a conversation with a member of Notion's support team in December 2021, and their ToS hasn't changed since). I'm not looking for any legal trouble, and I usually re-contact Notion to confirm before any major releases. |
Oh! That's great, and makes packaging much simpler. |
Until this will be published on Flathub, I uploaded my current Flatpak packaging, so anyone who wants this can easily build and install the app. |
Hi there! Any updates on this? Was trying to install notion-repackaged on Fedora using the yum repo, but apparently the server fails at 60% (while downloading) on all mirrors for some reason. I can install the released .rpm from the releases here, but I'd like something that auto-updates. And hell yeah, Flatpaks are much much better. #108 addresses the dnf download issue. |
Something I'd like to mention is, with publishing to Flathub, there's two things that can be done to assist with this process:
I have a working Flatpak manifest using this method that I would be willing to send or include in the aforementioned PR, which, when added to Flathub, will automatically create PRs and require very little maintenance. |
Bundles have limitations, like the missing extensions support, and I don't think these are of any use for Flathub publishing. |
Correct, bundles aren't used for Flathub publishing. They can be useful as an alternative method for downloading the app (similar to AppImages), but AppImages cover that area pretty well. I'm not sure about Flathub allowing direct uploads, but the general way of creating Flatpaks on Flathub is to use vendored packages as a source along with the source code, or to provide a pre-built version and extract it to the proper locations (which, as I mentioned, can be done easily by using the AppImage from Github Releases and extracting it properly) |
|
Ah, thank you. Yeah, that's interesting. At the moment, that's not available though, so I don't think we should try and wait |
I submitted a draft Notion Enhanced Flatpak packaging to distribute the app to Linux users via Flathub.org.
Like other Flatpak packaging, it would be best, and it's even the official policy that the application's developer(s) will maintain its Flatpak packaging, but seeing the low activity here, I decided to move forward and at least submit a proof-of-concept packaging. Please let me know if any of the developers here would like to take over the Flathub submission.
I'm still evaluating the application, the maintainability of the Flatpak packaging, and if this is something I would be able to maintain in the long run, and these are why the submission is a draft.
In its current state, packaged with Electron 11, it's not going in. I need Electron 14 or newer to display CJK characters correctly with my system CJK font.
I'm running locally Electron 18 with Notion 2.0.27, though not without issues, and I'm not sure yet if I can resolve all of them. Anyway, I'm digressing.
To avoid possible license restrictions, this Flatpak packaging does not distribute the sources of the original Notion application. Instead, it uses the apply_extra step to download the original application from Notion's servers during the installation of the Flatpak app on the user's system, extract the needed files, and apply the enhancements.
The packaging need to comply with Flathub's policy of sandboxed compilation/packaging without network, so we carry
package.json
andpackage-lock.json
for the enhancer and Notion, and install Node modules in offline mode.This added complication is why the Flatpak packaging of some Electron apps just repackage a binary release instead of building from source, but that's not really an option here, considering the usage of Notion's sources.
To avoid a large download to the user's machine with unoptimized Notion's
node_modules
folder, and refrain from running an electron-builder packaging operation on every update on the user's machine, I limited the apply_extra step to mainly extracting Notion's sources and running the enhancer. So far, I don't see any drawbacks using this method.Only Notion Enhanced is packaged. I don't see any benefit of having vanilla Notion repackaged, which even might confuse users to think that there's some official Linux Notion app.
Please let me know what you think. Should I move forward with this? Does anyone want to take over the submission?
The text was updated successfully, but these errors were encountered: