Open jacobq opened 6 years ago
Just a quick drive by comment, will try and look closer into it later. Flatpak 0.99.1 added this y/n support: https://github.com/flatpak/flatpak/releases/tag/0.99.1
I believe if you pass -y
or --assumeyes
on the CLI it'll work. however I think there are some other issues with the support here. Work on the BaseApp has been advanced a lot more over at Flathub (there's even an Electron2 version, where you don't need GTK2 anymore). This module could certainly do with some work.
@nedrichards Thanks for taking a quick look. That sounds like it matches with the problem I had. It's not trivial for me to pass command line options since it's a bit buried: I run ember-electron
, which runs electron-forge
, which runs electron-installer-flatpak
I believe, but will be on the look-out for changes in the future. To work around this for now I'm going to try explicitly installing the needed pieces beforehand using the flatpak
binary.
Somewhat related to this....Is there a way to use the Flathub BaseApp image instead via configuration? (In other words, do these options get passed to here so that they can overwrite what's passed to flatpak-bundler
?)
What version of
electron-installer-flatpak
are you using? 0.99.2What version of
node
andnpm
are you using? node: 8.11.3 npm: 6.1.0What operating system are you using? Linux
Can you compile the example app successfully?
If I manually install the base images / SDKs / runtimes / whatever, then I can build the example as well as my app.
What did you do? Please include the configuration you are using for
electron-installer-flatpak
. I am trying to build anember-electron
app on AppVeyor CI (default/emptyelectronInstallerFlatpak
options) but recently started seeing failures building the flatpak outputs. A closer look suggests that part of the flatpak toolchain is prompting the user to confirm installation with y/n but then defaulting to n (since there is no user; this is running non-interactively). See below output snippet:What did you expect to happen? Based on this project's README and previous experience, I expected the needed assets to be automatically downloaded and the build to succeed.
What actually happened? Looking at debug output (e.g.
DEBUG=flatpak-bundler ember electron:make
) it appears that the needed files were not downloaded, and the build failed.