Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Windows ppx executable not being found without extension #20

Merged
merged 1 commit into from
Sep 7, 2020

Conversation

AlisonSelby
Copy link

Creates a copy of the executable on install, one with .exe extension and one without, across all platforms. This allows Windows environments to use Linux bsconfigs without changing it.

…and one without, across all platforms. This allows Windows environments to use Linux bsconfigs without changing it.
if (!fs.existsSync("ppx.exe")) {
copyFileSync(filename, "ppx.exe");
fs.chmodSync("ppx.exe", 0755);
}
} else {
if (!fs.existsSync("ppx")) {
copyFileSync(filename, "ppx");
fs.chmodSync("ppx", 0755);
}
Copy link
Member

Choose a reason for hiding this comment

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

Would you mind fixing indentation as well.

Copy link
Member

Choose a reason for hiding this comment

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

NVM I'll do it myself.

@alex35mil alex35mil merged commit 795258f into shakacode:master Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants