You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i need to be able to call file_packager.py directly, but EMSDK env var doesn't seem to be set in the docker image as it would be with a direct install.
sorry to post a query like this here, but how is it possible to call file_packager.py
ideally something like this would just work in the docker image
> docker run --rm -it trzeci/emscripten:1.39.16-upstream bash -c ' $EMSDK/upstream/emscripten/tools/file_packager.py --help'
Remember to build the main file with -s FORCE_FILESYSTEM=1 so that it includes support for loading this file package
Nothing to do!
Just a sanity check:
There is a difference between single quote:
docker run --rm -it trzeci/emscripten:1.39.16-upstream bash -c 'echo $EMSDK'
and double quote:
docker run --rm -it trzeci/emscripten:1.39.16-upstream bash -c "echo $EMSDK"
In case of double quote - the bash interpreter resolves variable before executing the command - effectively it will look for $EMSDK on the host machine, so effectively it will be the same like:
docker run --rm -it trzeci/emscripten:1.39.16-upstream echo $EMSDK
In case of single quote - the string is not interpolated and passed in a raw form to the bash interpreter inside the docker image, and there it will be evaluated - effectively $EMSDK will be resolved to the correct value.
i need to be able to call file_packager.py directly, but EMSDK env var doesn't seem to be set in the docker image as it would be with a direct install.
sorry to post a query like this here, but how is it possible to call file_packager.py
ideally something like this would just work in the docker image
python $EMSDK/upstream/emscripten/tools/file_packager.py
but "upstream" is variable depending on the tag and as mentioned EMSDK is not set
The text was updated successfully, but these errors were encountered: