-
Notifications
You must be signed in to change notification settings - Fork 154
Conversation
src/electron.js
Outdated
@@ -82,6 +113,7 @@ function createWindow() { | |||
slashes: true, | |||
}); | |||
mainWindow.loadURL(startUrl); | |||
mainWindow.toggleDevTools(); |
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.
I'll remove toggleDevTools
in my next commit. I think that was just needed for debugging.
Hey @AWolf81, Thanks so much for your work on this! Afraid I don't have time to give this a thorough review right now, but I gave it a quick test run. It runs great in development, but I'm seeing this issue again, after installing the application: I believe I've seen this issue on an unrelated branch, as well, so I'm not convinced it's a problem with this change. I'll dig some more this evening, if I have the time. |
@joshwcomeau I've seen this issue before but I'm not sure how I fixed it - maybe One issue that's in the branch is that the app icon is not correctly displayed on Linux. It displays the following icon on Ubuntu 16.04: Not sure how to fix it. Seems like others also have that problem - see issue. |
Yeah, so this is reproducible for me, and it happens with a fresh state (I didn't actually try resetting, but there was no state to refresh). I'll spend some time soon checking to see if it happens on master. Because yeah, I'm not convinced this change is to blame, but if it's broken on master, this is release-blocking, so we should fix it ASAP anyway. But yeah I can take the lead on that since it's a MacOS-exclusive issue.
Ah, hm. That's a bit of a shame. The linked issue has a solution about adding an I think that should become its own issue, after this lands, but I don't think it should be blocking. Also: we should update our analytics to track platform. If only 1% of our users wind up being linux users (which wouldn't surprise me), I'm not so concerned about cosmetic defects that don't affect functionality. I'll create an issue for that. |
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.
Wooo excited to see this land!
We should merge my fix-mac-nvm
branch into this one before merging, but once that's done, let's do it!
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.
[Edit - duplicate. Github was being funky for me last night]
* Fix bundled Mac app * Only replace path when necessary * Add env vars to exec
Appreciate you commandeering! Changes look great :) |
You're welcome @Jtfinlay. OK, I've prepared everything but I think we need to check one final point before merging to master. I'm getting again that Ubuntu not tested yet. There was a flow error inside node_modules for graphql. Not sure why that happend but I added it to flow ignore as this is unrelated to Guppy. |
Codecov Report
@@ Coverage Diff @@
## master #267 +/- ##
==========================================
- Coverage 20.52% 20.49% -0.03%
==========================================
Files 239 239
Lines 3713 3733 +20
Branches 381 385 +4
==========================================
+ Hits 762 765 +3
- Misses 2676 2690 +14
- Partials 275 278 +3
|
Yay🎉! I've found how to fix the issue on Windows. It was because the path key on Windows started with an upper-case I think this is ready for merging - I just haven't re-tested it on Ubuntu. |
@@ -75,7 +85,8 @@ | |||
"dotenv": "5.0.0", | |||
"dotenv-expand": "4.2.0", | |||
"electron": "2.0.1", | |||
"electron-packager": "12.1.0", | |||
"electron-builder": "20.28.4", | |||
"electron-log": "^2.2.17", |
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.
Nit: Version not pinned.
Feel free to remove the ^
but I think we could also fix this after merging.
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.
Yeah, I'm not too worried.
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.
Woooohoooooo!
@@ -75,7 +85,8 @@ | |||
"dotenv": "5.0.0", | |||
"dotenv-expand": "4.2.0", | |||
"electron": "2.0.1", | |||
"electron-packager": "12.1.0", | |||
"electron-builder": "20.28.4", | |||
"electron-log": "^2.2.17", |
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.
Yeah, I'm not too worried.
[pathKey]: | ||
currentEnvironment[pathKey] + | ||
path.join(projectPath, 'node_modules', '.bin', path.delimiter), | ||
}; |
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.
Makes sense 👍
Related Issue:
#26
Hey @Jtfinlay thanks for your work on this. I hope it's OK that I'm commandeering this as you're busy with wedding planning. Hope everything is going well with your planning.
It would be also great if you could have a look - just if you're not too busy.
Summary:
buildermin
from jtfinlay's fork.shell: true
tospawn
forlaunchDevServer
&taskRun
. I'll add it tocreateNewProject
in a minute. I think that's open.eject
is still working. No issue detected on Windows.latest.yml
required in release but we're having this automatically ifyarn run publish
is used. (Attention: Don't useyarn publish
, omitted run, as this is trying to publish to npmjs. Maybe we could rename the publish command to avoid the confusion.)*.exe.blockmap
used for differential download - so keep it in the release. If it's not present it will fallback to full download.isGreaterThan
method. So it's important to have the semversion right and I would avoidalpha
releases as this is a bit confusing. So if we'd like to deploy a version than it should be a release like 0.3.x.@joshwcomeau & @superhawk610 can you please test on Mac and Ubuntu?