Fix Geckodriver download issues on Mac #11
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes: #7 #8
The
dusk:firefox-driver
command is showing two issues on Mac:Fix Geckodriver download using Laravel Dusk 6.12.0+
Laravel packages outside "laravel/framework" have a looser interpretation of semvar. [6.x] Add support for Mac ARM64 architecture laravel/dusk#876 changed the return values by public method
Laravel\Dusk\OperatingSystem::id()
when running in a Mac environment. It will now sometimes include the architecture in the string. That caused this package'sdusk:firefox-driver
command to skip the'mac'
operating system configuration.Remove the dependency on
OperatingSystem::id()
as Geckodriver doesn't (yet) have a distributed ARM binary.Fix the command on Mac failing to capture the extracted filename from the downloaded .tar.gz file. PHP's
exec()
doesn't populate its$output
array argument when run:Appending
2>&1
to the command seems to cause thex geckodriver
output string to be captured in$output
so there are somestdout
pipe shenanigans afoot. Linux terminals and Mingw-w64 on Windows don't have this behavior.