Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Fix bug where deasync binary isn't in Windows build #370

Merged
merged 2 commits into from
Oct 29, 2018

Conversation

eliangcs
Copy link
Member

Fixes #369.

@eliangcs eliangcs requested a review from xavdid October 24, 2018 03:26
Copy link
Contributor

@xavdid xavdid left a comment

Choose a reason for hiding this comment

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

This is ✅ once you make the path.join change. Windows is tough!

filePath.endsWith(`/bin/linux-x64-node-${nodeMajorVersion}/deasync.node`) || // Special, for zapier-platform-legacy-scripting-runner
filePath.endsWith(
// Special, for zapier-platform-legacy-scripting-runner
path.sep === '\\'
Copy link
Contributor

Choose a reason for hiding this comment

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

You can change this whole ternary to use path.join, which takes care of detecting and using the separator correctly. Same goes for above, and basically any other use of path.sep.

filePath.endsWith(path.join('bin', `linux-x64-node-${nodeMajorVersion}`, 'deasync.node'))

@eliangcs eliangcs merged commit e3b297d into master Oct 29, 2018
@eliangcs eliangcs deleted the windows-deasync-not-in-build branch October 29, 2018 06:59
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.

None yet

2 participants