Skip to content
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

Gotron-builder does not create a self-contained application #41

Open
kayline opened this issue Apr 12, 2019 · 2 comments
Open

Gotron-builder does not create a self-contained application #41

kayline opened this issue Apr 12, 2019 · 2 comments

Comments

@kayline
Copy link

kayline commented Apr 12, 2019

When we run gotron-builder on Mac, we get a folder containing a Unix executable file with the name of our app and subfolder called electronjs which contains an Application file called gotron-browser-window. We can run the executable file to start the application locally, but if we try to copy it to another machine without the accompanying gotron-browser-window Application file, it will not run.

We would like the output to be a portable Application file that we could copy to any Mac and run independently. How can we achieve this?

Note: When we attempt to build for windows, we have a similar issue.

@pjebs
Copy link

pjebs commented Apr 12, 2019

H

@Equanox
Copy link
Owner

Equanox commented Apr 15, 2019

gotron and gotron-builder work like this:

  1. gotron-builder creates one executable e.g. your_app containing the go binary
  2. gotron-builder downloads electron and bundles it with your UI in a directory name electronjs
    3: When starting your_app, gotron knows if your are in develop or production mode. When in production mode it will run ./electronjs/gotron-browser-window to bring up electron UI.

So you need to copy the executable your_app+ the folder electronjs together.

But be aware there is actually a bug which might prevent you from doing this, see #27 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants