-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Update the download.rst #25564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Update the download.rst #25564
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
.. _sdk-download-and-install: | ||
|
||
==================== | ||
Download and install | ||
Download & Install | ||
==================== | ||
|
||
.. note:: You can also :ref:`build Emscripten from source | ||
|
@@ -35,26 +35,59 @@ the first time with: | |
download => Download ZIP" on the `emsdk GitHub page | ||
<https://github.com/emscripten-core/emsdk>`_. | ||
|
||
Run the following :ref:`emsdk <emsdk>` commands to get the latest tools from | ||
GitHub and set them as :term:`active <Active Tool/SDK>`: | ||
Getting the tools | ||
^^^^^^^^^^^^ | ||
To get the latest tools from GitHub and set them as :term:`active <Active Tool/SDK>` run the following :ref:`emsdk <emsdk>` commands. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Drop the |
||
|
||
**Linux/Mac** | ||
|
||
:: | ||
|
||
# Fetch the latest version of the emsdk (not needed the first time you clone) | ||
git pull | ||
#Fetch the latest version of the emsdk (not needed the first time you clone) | ||
git pull | ||
# Download and install the latest SDK tools. | ||
./emsdk install latest | ||
# Make the "latest" SDK "active" for the current user. (writes .emscripten file) | ||
./emsdk activate latest | ||
# Activate PATH and other environment variables in the current terminal | ||
source ./emsdk_env.sh | ||
|
||
# Download and install the latest SDK tools. | ||
./emsdk install latest | ||
**Windows** | ||
|
||
# Make the "latest" SDK "active" for the current user. (writes .emscripten file) | ||
./emsdk activate latest | ||
:: | ||
|
||
# Activate PATH and other environment variables in the current terminal | ||
source ./emsdk_env.sh | ||
#Fetch the latest version of the emsdk (not needed the first time you clone) | ||
git pull | ||
# Download and install the latest SDK tools. | ||
emsdk.bat install latest | ||
# Make the "latest" SDK "active" for the current user. (writes .emscripten file) | ||
emsdk.bat activate latest | ||
# Activate PATH and other environment variables in the current terminal (optional) | ||
emsdk_env.bat | ||
|
||
.. tip:: If you want to avoid executing `source ./emsdk_env.sh` every time you open a new terminal, you can follow the instructions given by the `emsdk activate` command above to add this command to your startup scripts. | ||
|
||
.. note:: On Windows, run ``emsdk.bat`` instead of ``./emsdk``, and ``emsdk_env.bat`` instead of ``source ./emsdk_env.sh``. | ||
.. tip:: For Windows machines here is a useful routine to follow: | ||
|
||
:: | ||
|
||
# To open the emscripten command line in your IDE terminal run the following | ||
|
||
# Navigate to newly created emsdk folder | ||
cd emsdk | ||
# Run the emcmdprompt.bat file | ||
emcmdprompt.bat | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe just make this a single command ( |
||
# To use the compilation commands remember to navigate one folder up | ||
cd.. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You con't need to be in any particlar directory. |
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually I'm not sure we need this new windows-specific tip do we? Isn't it covered by the exiting tip below? |
||
.. tip:: If you want to avoid executing `source ./emsdk_env.sh` every time you open a new terminal, you can follow the instructions given by the `emsdk activate` command above to add this command to your startup scripts. | ||
|
||
.. note:: On Windows, if you use the ``activate`` command, the step of ``emsdk_env.bat`` is optional. If you want to know more, see :ref:`activate SDK version <emsdk-set-active-tools>`. | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change rather needless. Why change it?
If you do change it can you change the length of the
====
lines above and below?