update README chromium -> firefox

This commit is contained in:
Ralf Vogler 2022-12-29 12:05:43 +01:00
parent 09b867158c
commit bea048cc72

View file

@ -14,6 +14,7 @@ _Works on Windows/macOS/Linux._
``` ```
docker run --rm -it -p 6080:6080 -v fgc:/fgc/data ghcr.io/vogler/free-games-claimer docker run --rm -it -p 6080:6080 -v fgc:/fgc/data ghcr.io/vogler/free-games-claimer
``` ```
which will run `epic-games` and then `prime-gaming`.
Data is stored in the volume `fgc`. Data is stored in the volume `fgc`.
<details> <details>
@ -21,14 +22,14 @@ Data is stored in the volume `fgc`.
1. [Install Node.js](https://nodejs.org/en/download) 1. [Install Node.js](https://nodejs.org/en/download)
2. Clone/download this repository and `cd` into it in a terminal 2. Clone/download this repository and `cd` into it in a terminal
3. Run `npm install && npx playwright install chromium` 3. Run `npm install && npx playwright install firefox`
This downloads Chromium to a cache in home ([doc](https://playwright.dev/docs/browsers#managing-browser-binaries)). This downloads Firefox to a cache in home ([doc](https://playwright.dev/docs/browsers#managing-browser-binaries)).
If you are missing some dependencies for the browser on your system, you can use `sudo npx playwright install chromium --with-deps`. If you are missing some dependencies for the browser on your system, you can use `sudo npx playwright install firefox --with-deps`.
</details> </details>
## Usage ## Usage
Both scripts start an automated Chromium instance, either with the browser GUI shown or hidden (*headless mode*). Both scripts start an automated Firefox instance, either with the browser GUI shown or hidden (*headless mode*).
Login has to be done in the browser. It's hard to automate since you usually need to enter some OTP (but you can select 'remember this device'). Login has to be done in the browser. It's hard to automate since you usually need to enter some OTP (but you can select 'remember this device').
After login, the script will just continue, but you can also restart it. After login, the script will just continue, but you can also restart it.