Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/staudenmeir/dusk-updater
Updater for Laravel Dusk ChromeDriver binaries
https://github.com/staudenmeir/dusk-updater
Last synced: about 1 month ago
JSON representation
Updater for Laravel Dusk ChromeDriver binaries
- Host: GitHub
- URL: https://github.com/staudenmeir/dusk-updater
- Owner: staudenmeir
- License: mit
- Created: 2018-03-19T21:54:24.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-08-21T13:17:14.000Z (3 months ago)
- Last Synced: 2024-09-21T13:06:54.085Z (about 2 months ago)
- Language: PHP
- Size: 42 KB
- Stars: 126
- Watchers: 6
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Dusk Updater
[![CI](https://github.com/staudenmeir/dusk-updater/actions/workflows/ci.yml/badge.svg)](https://github.com/staudenmeir/dusk-updater/actions/workflows/ci.yml)
[![Latest Stable Version](https://poser.pugx.org/staudenmeir/dusk-updater/v/stable)](https://packagist.org/packages/staudenmeir/dusk-updater)
[![Total Downloads](https://poser.pugx.org/staudenmeir/dusk-updater/downloads)](https://packagist.org/packages/staudenmeir/dusk-updater/stats)
[![License](https://poser.pugx.org/staudenmeir/dusk-updater/license)](https://github.com/staudenmeir/dusk-updater/blob/main/LICENSE)This Artisan command updates your Laravel Dusk ChromeDriver binaries to the latest or specified release.
Supports all versions of Dusk.
## Installation
composer require --dev staudenmeir/dusk-updater:"^1.1"
Users of Laravel 5.4 have to register the new provider in `AppServiceProvider::register()`:
```php
if ($this->app->environment('local', 'testing')) {
$this->app->register(\Staudenmeir\DuskUpdater\DuskServiceProvider::class);
}
```## Usage
Download the latest stable ChromeDriver release:
php artisan dusk:update
Let the updater detect the installed Chrome/Chromium version:
php artisan dusk:update --detect
Specify the absolute path to your custom Chrome/Chromium installation (not supported on Windows):
php artisan dusk:update --detect=/usr/bin/google-chrome
Specify the major Chrome/Chromium version manually:
php artisan dusk:update 127
Specify the desired ChromeDriver version manually:
php artisan dusk:update 127.0.6533.119
If Dusk is still using the previous version after the update, there is probably an old ChromeDriver process running that you need to terminate first.
## Contributing
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) and [CODE OF CONDUCT](.github/CODE_OF_CONDUCT.md) for details.