Hello!
I was wondering if there is any way to use snap in order to package an Electron app alongside with a C++ daemon.
Specifically, I want a daemon to be completely written in C++ (managed by systemd
or a manual PID file, with autostart on system boot) to be able to communicate with an Electron UI with some sort of IPC strategy. I’d like to avoid writing a node.js extension at all, just to keep the daemon smaller & faster. I should be able to easily kill the electron UI, but keep the daemon around with main functionality running in background.
My questions are:
- is there any way to define the two parts in a single
snapcraft.yaml
file? Is there any way to declare the relations between them at the snap level? - can I reuse the
daemon
functionality snap provides for the C++ part and keep this one separated from the Electron UI?
Disclaimer: I’m a total newbie into the Snapcraft world and most surely I didn’t expressed myself correctly here but thanks for taking the time to read through it!
Thanks in advance for any help!