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

Fix TIMOB-18958 Windows: CLI builds hang on first try due to Powershe… #17

Closed

Conversation

sgtcoolguy
Copy link
Contributor

…ll permission check in windowslib

Use the -ExecutionPolicy Bypass -File args to avoid having to set execution policy manually to run scripts in files.

@dawsontoth
Copy link
Contributor

Yeah, I can reproduce this.

@dawsontoth
Copy link
Contributor

The PR fixed most of the errors I was seeing around the execution policy. It was still failing to detect if the emulator was running, but once I applied the fix to this last bit of code, everything worked well for me. All tests pass for me (except for the ones interacting with a device, because I don't have one to connect).

So is it ok if we change the two instances of '-command', emulator.js to '-ExecutionPolicy', 'Bypass', '-File'?

@sgtcoolguy
Copy link
Contributor Author

Yeah, I must have missed that file when I did my pass. Let me update the PR with it.

@sgtcoolguy
Copy link
Contributor Author

Merged manually

@sgtcoolguy sgtcoolguy closed this Jun 9, 2015
@sgtcoolguy sgtcoolguy deleted the TIMOB-18958 branch June 9, 2015 21:02
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.

None yet

2 participants