-
-
Notifications
You must be signed in to change notification settings - Fork 513
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
An error occurred while making for target: flatpak #2561
Comments
Same here in Fedora 34 |
Reproduced w/ Arch latest |
Im getting the same issue on Ubuntu 20.04 with very similar steps and electron version 15.1.1 |
seems similar to #1702 |
I got the same issue. I managed to make it work by installing some flatpaks things :
|
I'm now using Fedora as my daily driver and still doesn't work. I have installed those flatpaks and still don't build. |
I can't get this to work either... |
Interestingly, I'm trying to build a flatpak using
|
I'm not using electron-builder for flatpaks anymore. You can create your own .yml file and use Here is the example that I made: https:/flathub/com.rabbit_company.passky If you make it like that, you can also publish your flatpak to their official repository. |
Thanks for the tip! But are you sure we should close the ticket? It seems like this is still a bug in electron-forge |
I will open it, but to be honest you will never see flatpaks distributed as files. There will always be downloaded from the repository. So the way I have suggested it the only "correct" way of making and distributing flatpaks. On websites for projects that support Linux, they usually provide .deb, .rpm, .appImage, but never .flatpak. They will always link you to the flatpak repository. |
Whats the satus on this one? |
There are good reasons to want to build a flatpak as part of the regular CI, some of which are: being part of the same CI pipeline, using the same options, tooling, pre-processing, and so on (I don't think explaining the benefits of a consistent build pipeline is necessary). There are also good reasons why a flatpak wouldn't be distributed on Flathub, some of which are: internal tooling, or app in beta trial, or simply not wanting to. A lot of (betas, alphas) flatpaks are distributed outside of Flathub. Treating the bug like that is not the right course of action, but if there's no interest in fixing it, claiming Flatpak support is misleading, and it must be removed from the doc. |
The following works for me:
|
Replicated on fresh Manjaro KDE install, simply running this command fixed it for me: |
This did it, feel free to close it unless it doesn't work for someone else. |
Worked for me, thank you. |
Pre-flight checklist
Electron Forge version
6.0.0-beta.61
Electron version
15.0.0
Operating system
Zorin OS and POP OS 21.04 -> Doesn't work on any of those OS.
Last known working Electron Forge version
Never
Expected behavior
Be able to create flatpak file.
Actual behavior
I have flatpak, flatpak-builder and also elfutils (eu-strip) installed.
It provide me with an error:
Steps to reproduce
Clone repository: https:/Rabbit-Company/Passky-Desktop
Add
"@electron-forge/maker-flatpak": "^6.0.0-beta.61"
to devDependencies in package.json fileAdd this json code to js/forge.config.js file:
Run
npm i
to install all dependenciesThan run
npm run make
.Result of npm run make:
Additional information
No response
The text was updated successfully, but these errors were encountered: