Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Conversation

daviwil
Copy link
Contributor

@daviwil daviwil commented Jul 12, 2018

Description of the Change

This change modifies the getAtomAppName function to use a looser regex for identifying the channel name of the current Atom version. This is necessary on macOS because we will now be calling the helper app Atom Dev Helper.app during CI builds against Atom master.

Alternate Designs

Could have added dev to the existing channel name regex, but this seemed more future-proof. Happy to go back to the old approach, though.

Benefits

Less code changes to this function in the future?

Possible Drawbacks

What happens if a weird Atom build with a different version format comes along?

Applicable Issues

atom/atom#17680

@daviwil daviwil requested a review from smashwilson July 12, 2018 19:22
@daviwil daviwil changed the title Support arbitrary channel names when lauhching Atom Helper Support arbitrary channel names when launching Atom Helper Jul 12, 2018
@daviwil
Copy link
Contributor Author

daviwil commented Jul 12, 2018

CI seems to be failing because of the security binary config issue

@daviwil daviwil force-pushed the dw-hambetter-helper branch from 43a6e0c to 80c3d6a Compare July 12, 2018 19:34
lib/helpers.js Outdated

function getAtomAppName() {
const match = atom.getVersion().match(/beta|nightly/);
const match = atom.getVersion().match(/-([a-z]+)(\d+|-)/);
Copy link
Contributor

Choose a reason for hiding this comment

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

No chance we'll use uppercase letters in our channel names? 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had it there at first but took it out because I figured it wouldn't happen. I can add it back!

@daviwil daviwil merged commit 2a25323 into 0.17-releases Jul 12, 2018
@daviwil daviwil deleted the dw-hambetter-helper branch July 12, 2018 20:55
daviwil added a commit that referenced this pull request Jul 12, 2018
Support arbitrary channel names when launching Atom Helper
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants