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

Packaging for macOS using electron-builder #34

Merged

Conversation

mook-as
Copy link
Contributor

@mook-as mook-as commented Jan 5, 2021

This is an alternative to #28 using electron-builder instead. This would also fix #9.

Running it for development is the same as before, using npm run dev.
Building the package will now be npm run electron:build.

Note that this will also not resolve issues around installing hyperkit as mentioned in #28.

@mattfarina
Copy link
Contributor

To note my 2 issues when testing...

  1. The preferences UI right panels did not display correctly
  2. I got an exit code of 65 from minikube that says the provider (hyperkit) isn't found

This is needed for other tools.
This will be used to package things up.
This is necessary because the provided one doesn't seem to do the correct
thing with packaged mode.
It leads to webpack not packaging dependencies (because it didn't see them)
Because some tools appear to expect NDOE_ENV to be "development" instead of
"DEV".
Just seems like better packaging.
That does everything needed; running electron manually leads to errors
loading files.

Also drops the "concurrently" package, since we no longer use it.
This is required for packaged builds.
Otherwise the tray icon & the minikube executable will be missing.
This ensures it gets picked up correctly when we do packaged builds.
This is necessary as the renderer process would not have access to the
electron.app object (required to see if the application is packaged).
@mook-as mook-as force-pushed the packaging-macos-electron-builder branch from 009b56d to 4c4b6a6 Compare January 6, 2021 23:44
Otherwise we will not be able to find it in packaged builds.
@mook-as
Copy link
Contributor Author

mook-as commented Jan 6, 2021

Fixed issue 1) (because we were failing to load the versions JSON); still unclear what 2) was from. But that should be independent of this PR, to be fixed in #31.

@mattfarina mattfarina merged commit 2f60403 into rancher-sandbox:main Jan 7, 2021
@mook-as mook-as deleted the packaging-macos-electron-builder branch January 8, 2021 17:12
jandubois pushed a commit to jandubois/rancher-desktop that referenced this pull request Jun 28, 2024
jandubois pushed a commit to jandubois/rancher-desktop that referenced this pull request Jun 28, 2024
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

Successfully merging this pull request may close these issues.

Package as a Mac app
2 participants