bermi/sauce-connect-launcher — pull request #17 by bcbailey (2014-03-03 18:22:39+00:00)
Title: Set execute permissions on sc binary after unpacking archive

I was just testing out sauce-connect-launcher for the Sauce Connect v4 support.
OS: Mac OS X 10.8.5

When executing the sc binary I was receiving EACCES errors.

1) Sauce Connect Launcher should download Sauce Connect:
Uncaught Error: spawn EACCES
at errnoException (child_process.js:980:11)
at Process.ChildProcess._handle.onexit (child_process.js:771:34)

Checking the permissions of the binary showed it did not have execute permissions:

$ ls -l sc/sc-4.0-osx/bin/sc
-rw-rw-rw- 1 bcbailey ... 799324 Mar 3 11:20 sc/sc-4.0-osx/bin/sc

I have added in support to add execute permissions after extracting the archive. This resolves the issue. I am not sure if anything special needs to be done for windows though.