added readme and example

This commit is contained in:
2018-04-25 22:04:09 +03:00
parent 373ee7703d
commit cb405efd26
10 changed files with 261 additions and 5 deletions

View File

@@ -22,7 +22,9 @@ class Haxe extends Sdk {
return `${this.binPath}/${name}.exe`;
} else if (Sdk.System.isLinux) {
const binPath = `${this.binPath}/${name}`;
fs.chmodSync(binPath, 0o755);
if (fs.existsSync(binPath)) {
fs.chmodSync(binPath, 0o755);
}
return binPath;
}
throw `Unsupported OS: ${os.type()}`;