Building Cross Platform GUI apps in Go and Electron

1,186 views
Skip to first unread message

Nyah Check

unread,
Mar 8, 2017, 7:32:14 AM3/8/17
to golang-nuts
Hi Gophers,

I have this project to build an SSH client for Windows, Linux and Mac OS. I have built the back end in Go and intend to build the front end in electron. I'm currently stuck getting the GUI to work. The back end of the app works well on the Linux browser. I just wish to know if there are any Go packages that facilitate the building of cross platform Desktop apps with Go and electron.  I've found Gallium and Murlok; but they all seem to support only Mac OS only. 

Any ideas?

Thanks,
Nyah
--
"The heaviest penalty for declining to rule is to be ruled by someone inferior to yourself." --Plato

Michael Banzon

unread,
Mar 8, 2017, 7:46:53 AM3/8/17
to Nyah Check, golang-nuts
I have no deep knowledge of this - but is also looking into a project with similar characteristics.

I'm wondering what specifically isn't working for you?

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Nyah Check

unread,
Mar 8, 2017, 7:51:31 AM3/8/17
to Michael Banzon, golang-nuts
When I compile the source with gox for the different platforms. packing the electron files with the respective shell scripts the binaries don't seem to work on windows. So I'm guessing I've messed up the electron configs somewhere. I just hoped there might have been a go package developed for this to make it easier to build for different platforms.

On Wed, Mar 8, 2017 at 1:46 PM, Michael Banzon <mic...@banzon.dk> wrote:
I have no deep knowledge of this - but is also looking into a project with similar characteristics.

I'm wondering what specifically isn't working for you?

On Wed, Mar 8, 2017 at 1:33 PM Nyah Check <check...@gmail.com> wrote:
Hi Gophers,

I have this project to build an SSH client for Windows, Linux and Mac OS. I have built the back end in Go and intend to build the front end in electron. I'm currently stuck getting the GUI to work. The back end of the app works well on the Linux browser. I just wish to know if there are any Go packages that facilitate the building of cross platform Desktop apps with Go and electron.  I've found Gallium and Murlok; but they all seem to support only Mac OS only. 

Any ideas?

Thanks,
Nyah
--
"The heaviest penalty for declining to rule is to be ruled by someone inferior to yourself." --Plato

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--

mhh...@gmail.com

unread,
Mar 8, 2017, 8:16:44 AM3/8/17
to golang-nuts
hi,

same interest here. Have you checked https://electron.atom.io/docs/tutorial/application-distribution/ ?

If i m correct the front end could be the packager app,
i was reading at electron-builder,
to include the backend, i d simply
add the files to the builder manifest,
like described at
https://github.com/electron-userland/electron-builder/wiki/Options#source-and-destination-directories

I have not dig yet too much about
- menu/desktop links
- growler (? desktop app notifications)

an easier solution seems
https://github.com/electron-userland/electron-packager

But, i read https://github.com/electron-userland/electron-packager#about

Note that packaged Electron applications can be relatively large. A zipped barebones OS X Electron application is around 40MB.

And https://github.com/electron-userland/electron-builder#electron-builder---

... support out of the box. NPM packages management:


So in my case, maybe i ll simply make a go executable
and rely on the browser without electron.
40 mb is huge... I don t want either to install the whole nodejs ecosystem for such app.
Reply all
Reply to author
Forward
0 new messages