Skip to content

Commander of lines - #1925

Merged
niik merged 51 commits into
masterfrom
commander-of-lines
Jul 14, 2017
Merged

niik merged 51 commits into
masterfrom
commander-of-lines

Conversation

@joshaber

@joshaber joshaber commented Jun 7, 2017 •

Copy link
Copy Markdown
Contributor

⚠️ Dependent on #1924 ⚠️

Fixes #696

On Windows, we'll automatically insert our bin directory into the user's PATH, 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

screen shot 2017-06-08 at 10 33 37 am

screen shot 2017-06-08 at 3 06 19 pm

@joshaber
joshaber changed the base branch from master to command-those-lines June 7, 2017 21:38
@joshaber

Copy link
Copy Markdown
Contributor Author

☄️

@toshimaru

Copy link
Copy Markdown

I'd like the PR to be merged! 😄

@joshaber

Copy link
Copy Markdown
Contributor Author

🏤

setxPath = 'setx.exe'
}

await spawn(setxPath, ['Path', paths.join(';')])

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@shiftkey

Copy link
Copy Markdown
Member

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.

@shiftkey shiftkey removed their assignment Jun 30, 2017
@shiftkey
shiftkey dismissed their stale review June 30, 2017 12:53

holidaysssss

@joshaber

Copy link
Copy Markdown
Contributor Author

@niik @iAmWillShepherd could one of you take a look at this? It'd be nice to get those Squirrel.Windows fixes out.

@niik niik self-assigned this Jul 13, 2017

@niik niik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, a few questions

const promise = handleSquirrelEvent(arg)
if (promise) {
willQuit = true
promise

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

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.

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.

This comment was marked as spam.

</DialogContent>
<DialogFooter>
<ButtonGroup>
<Button type="submit">OK</Button>

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

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.

This comment was marked as spam.

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.

@joshaber

Copy link
Copy Markdown
Contributor Author

🇱🇰

@niik
niik merged commit 4fdc3c9 into master Jul 14, 2017
@niik
niik deleted the commander-of-lines branch July 14, 2017 14:49
@zeke

zeke commented Jul 15, 2017

Copy link
Copy Markdown
Contributor

Thank you, Team Desktop. 💛

@feross

feross commented Jul 15, 2017

Copy link
Copy Markdown

Excellent! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants