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
Create macos installer #20
Conversation
@@ -1,16 +1,18 @@ | |||
{ | |||
"name": "field-data-coordinator", | |||
"productName": "Field Data Coordinator", | |||
"productName": "observe-desktop", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is supposedly the string that's used in the application menu.
Awesome.
So Can you elaborate on the
Would a slightly less weird equivalent be copying
What's the underlying reason for this? (Mainly curious.) Is it because |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it works, 👍!
I'm definitely curious about some of the whys, but running code is fantastic.
I think the renaming to On
Thinking about this more, the right way to do this is probably to copy both Last, on I'm actually glad you pointed that out, since |
Yup, that makes total sense. And/or build against the electron runtime. The "correct" fix is probably to make
Just
Awesome. Makes sense. Thanks! |
@mojodna I ended up copying over everything that |
Maybe we should structure so that libs for the main thread live in |
I finally got the mac os packager and installer working.
This also does some extensive re-organizing to make native module handling more straightforward.
dist
, intosrc
.src
and moves.npmrc
intosrc
as well.Reason: I was running into issues because
appdmg
requires native modules that were getting built for electron thanks to the presence.npmrc
. Now, all the electron modules should go into the secondary package.json file, while development modules live in the root package.json.This does lead to some directory weirdness, like the fact that
dist
now gets built and put insrc
. I don't think this is a huge deal though.Also, a note that when requiring electron in the render thread, you must use
window.require('electron')
.