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

unable to open releases properly on Mac #108

Closed
si458 opened this issue Jun 17, 2020 · 5 comments · Fixed by #118
Closed

unable to open releases properly on Mac #108

si458 opened this issue Jun 17, 2020 · 5 comments · Fixed by #118
Labels
bug Something isn't working

Comments

@si458
Copy link
Contributor

si458 commented Jun 17, 2020

every release i download i have nothing but problems trying to open them

i copy the app to 'Applications' then double click to run which then displays

"kubenav.app" cannot be opened because the developer cannot be verified.
macOS cannot verify that this app is free from malware.

MOVE TO BIN OR CANCEL

i click cancel, then try right clicking on the file and clicking open instead which then displays

macOS cannot verify the developer of "kubenav.app". Are you sure you want to open it?
By opening this app, you will be overriding system security which can expose your computer and personal information to malware that may harm your Mac or compromise your privacy.

MOVE TO BIN, OPEN OR CANCEL

i then click open, but after 1 second it then closes itself again???

so then a third time, i double click the kubenav.app to open (also tried with right click and then open) it then eventually opens about about 10seconds

i have noticed however the file size starts out at 110MB but after the third run, it suddenly jumps to 350MB!?

i believe the app is downloading electron on the first run after the right click then open but never succeeds and only downloads it on the third try, which isn't very helpful as i expected to app to just open, not try three times just to open the app!

can you bundle electron with each release or maybe include a screen saying
'PLEASE WAIT IM DOWNLOADING ELECTRON TO RUN THE APP'

@uhlhosting
Copy link

I was about to open this issue. Thanks!

@ricoberger
Copy link
Member

Hi, I think the root cause for this behavior is, that the macOS app isn't signed. This should be fixed with #109, which signs all release versions and the builds from the scheduled GitHub Action.

You can try it with the following build: https://github.com/kubenav/kubenav/actions/runs/139943757

I would keep this issue open until the next release. It should be fixed for the release, but it is not completely fixed for the GHA artifacts. I think because the artifacts are packaged twice.

@si458
Copy link
Contributor Author

si458 commented Jun 18, 2020

Hi, that sorta worked,
I no longer get the macOS cannot verify that this app is free from malware.
I just get Open or Cancel
BUT after i click Open, it just closes straight away, no error, no warning, nothing...
its only when you open it a second time does it actually load but even then thats after about 10 seconds as again it seems the file size is tiny at first, but then after the second run its jumped in size and downloads electron.
can electron be included in the release to save the startup time?

@ricoberger
Copy link
Member

Hi, currently I have no idea, why it only works with the second double click. I created an issue in the underlying project to get some input on the issue: asticode/go-astilectron-bundler#75

@ricoberger ricoberger added the bug Something isn't working label Jun 19, 2020
@ricoberger
Copy link
Member

The issue should be fixed. You can try it yourself with the following build: https://github.com/kubenav/kubenav/actions/runs/146490086

I wouldn't include Electron and go-astilectron in the provided zip file, but I added a note about this behavior: 17ca93a

If you know a good way to include both frameworks in the builded application, without too much difference between macOS, Linux and Windows, I'm happy to accept a PR for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants