I'm trying to generate an html5 export template with my encrypted key I've already installed all the libs required in the documentation, but the following error occurs

scons: Reading SConscript files ... Invalid target platform "javascript". The following platforms were detected: windows Please run SCons again and select a valid platform: platform= string

the documentation I was using as a basis were these;

https://docs.godotengine.org/en/stable/development/compiling/compiling_for_web.html

https://docs.godotengine.org/pt_BR/stable/development/compiling/compiling_with_script_encryption_key.html

If this error occurs, it's because SCons is not detecting your Emscripten setup. You most likely need to run the ./emsdk env activate command every time you wish to build Godot in a new terminal session.

@Calinou said: If this error occurs, it's because SCons is not detecting your Emscripten setup. You most likely need to run the ./emsdk env activate command every time you wish to build Godot in a new terminal session.

Thanks for replying, can you tell me how I do it, I am using Visual Studio terminal to compile, just do this command first or do it together with build scons command. I'm a little new to the command line, I'm using windows.

Just use the regular command line, though I think in Visual Studio it is the same (it's just a shell).

@cybereality said: Just use the regular command line, though I think in Visual Studio it is the same (it's just a shell).

thanks for the help I also had to take this command line to work "emsdk_env.bat" , now it's solved

a year later