Repository navigation
Commander of lines - #1925
Commander of lines#1925
Conversation
|
☄️ |
|
I'd like the PR to be merged! 😄 |
|
🏤 |
| setxPath = 'setx.exe' | ||
| } | ||
|
|
||
| await spawn(setxPath, ['Path', paths.join(';')]) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
This is looking pretty good, but I'm about to board a plane for holidays and I really don't want to rush this review. Gonna drop myself from the review. |
|
@niik @iAmWillShepherd could one of you take a look at this? It'd be nice to get those Squirrel.Windows fixes out. |
| const promise = handleSquirrelEvent(arg) | ||
| if (promise) { | ||
| willQuit = true | ||
| promise |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| function getBinPath(): string { | ||
| const appFolder = Path.resolve(process.execPath, '..') | ||
| const rootAppDir = Path.resolve(appFolder, '..') | ||
| return Path.join(rootAppDir, 'bin') |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| const appFolder = Path.resolve(process.execPath, '..') | ||
| const versionedPath = Path.relative( | ||
| binPath, | ||
| Path.join(appFolder, 'resources', 'app', 'static', 'github.bat') |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| </DialogContent> | ||
| <DialogFooter> | ||
| <ButtonGroup> | ||
| <Button type="submit">OK</Button> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| export const InstalledCLIPath = '/usr/local/bin/github' | ||
|
|
||
| /** The path to the packaged CLI. */ | ||
| const PackagedPath = Path.resolve(__dirname, 'static', 'github.sh') |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| const exeName = Path.basename(process.execPath) | ||
|
|
||
| // A lot of this code was cargo-culted from our Atom comrades: | ||
| // https://github.com/atom/atom/blob/7c9f39e3f1d05ee423e0093e6b83f042ce11c90a/src/main-process/squirrel-update.coffee. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
🇱🇰 |
|
Thank you, Team Desktop. 💛 |
|
Excellent! 🎉 |
Fixes #696
On Windows, we'll automatically insert our
bindirectory into the user'sPATH, like Atom and VS Code do. On Mac, the user will need to explicitly choose to install the tool.While I was mucking around with Squirrel.Windows, I also fixed a few bugs:
Fixes #1875
Fixes #1759
Fixes #1863