-
Notifications
You must be signed in to change notification settings - Fork 5
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
Build from source #28
Comments
@A6GibKm I am familiar with Go and can help you out. |
So first thing is we need to probably start using the icons provided by the repository instead of the svg in this repo, unless for some reason you wanted to keep it. After that, all you need is to run |
The icon is generated when buidling as far as I remember, currently I am using the one in this repo because the one that comes in the On the go side, as I understand it flatpak-builder builds without internet so you have to manually add sources for all dependencies and put them in a path where go knows they are installed. besides the go libs, libGL.so is also needed, idk if the runtime bundles it. |
I spent most of the night working on it and I have to say this is the worst tech stack in the world. I have built electron and it was easier than this. I'll keep trying tomorrow but my god I am running out of ideas and the proton-bridge repo has zero instructions for building as far as I can tell. Great software all around. |
Well the instructions are Also note that the installer will use the env variable |
It is tough because you have to vendor the go dependencies for flatpak, which is really annoying with the way therecipe/qt works. |
Here therecipe/qt is builded, it migth help. |
The easiest would be that the authors provides all the vendor dependencies in the release tarball, when they do one, otherwise it will be a nightmare. I will open a ticket. |
Could someone explain me what is the difficulty? I have compile protonmail bridge many times on my machine (Gentoo) and have never experienced any issue. By the way, all dependencies are defined here: https://github.com/ProtonMail/proton-bridge/blob/master/go.sum |
Building in Flatpak is the issue |
To build a flatpak you don't have internet during the process. So you have to specify everything that will be downloaded prior to the On the other hand go packaging is a mess and I don't know much go anyways. The bridge builds the entire Qt stack so that might be hard to track in terms of dependencies. If I were a little more comfortable with go modules I would try this again, but for the moment I haven't found the time. Again, I would highly appreciate if someone makes some progress. |
Go base app, build from source: https://github.com/flathub/io.github.mki1967.mki3dgame/blob/master/io.github.mki1967.mki3dgame.json |
I will look at it later, the problem is not making a manifest with the ~300 modules (listed in your link) and their respective hashes/commits etc, but knowing what to do with those, and for the time being |
Some progress at #46. What is missing is to add sources to the manifest. I am not able to get docker-credential-helpers tho
|
Any progress with this, or was it too difficult to achieve? |
None. More than difficult I lack the knowledge for distributing a go program, but it certainly is not straightforward. |
ProtonMail needs to come forward and support the Flatpak distribution. The bridge project is just too much work to distribute from source. Their Go/Qt toolchain is so hard to work with. People using Go + Qt must hate themselves. |
If this is big concern, it's relatively easy to build the CLI version of Proton Bridge. I also have this automated (may only work on Debian, needs testing). |
The source for
protonmail-bridge
has recently ben released at github.com/ProtonMail/proton-bridge.I am not familiar to building packages using golang, any help would be appreciated, this might fix issues related to the build being created with libraries older than the ones provided by the flatpak runtime.
The text was updated successfully, but these errors were encountered: