vogler / free-games-claimer

Automatically claims free games on the Epic Games Store, Amazon Prime Gaming and GOG.
GNU Affero General Public License v3.0
2.19k stars 139 forks source link

How to run "SHOW=1 node epic-games" on a Windows CMD #314

Closed ghost closed 1 week ago

ghost commented 3 months ago

It seems those "SHOW=1 node epic-games" and "EMAIL=foo@bar.baz SHOW=1 node epic-games" works only on Linux/macOS OOTB.

Is there a workaround that will let me login with the browser under Windows CMD ?

image

jaxparrow07 commented 2 months ago

CMD has a different syntax for environment variables.

The SHOW=1 goes like this ( have to run one by one )

set SHOW=1
set EMAIL=""
<node js command here>

If you want to execute them on a single line/execution. You'll have to append call before the calling function so the variables take effect.

 set SHOW=1 && set EMAIL="" && call <node js command here>
EnduringGuerila commented 6 days ago
set SHOW=1
set EMAIL=""
<node js command here>

This worked just fine as 3 separate commands.

set SHOW=1 && set EMAIL="" && call <node js command here>

I couldn't get the single line to work in CMD or powershell

also, the email should not be in quotes as the quotes get pasted into the email field

jaxparrow07 commented 6 days ago
set SHOW=1
set EMAIL=""
<node js command here>

This worked just fine as 3 separate commands.

set SHOW=1 && set EMAIL="" && call <node js command here>

I couldn't get the single line to work in CMD or powershell

also, the email should not be in quotes as the quotes get pasted into the email field

What's the output when you try the single-line command? And what windows version are you on.

I appreciate you for pointing out the quotes.