Add new command emsdk update-tags to only update to the most recent nightly and tagged tags.
This commit is contained in:
10
emsdk
10
emsdk
@@ -1767,8 +1767,11 @@ def main():
|
|||||||
parameter, also historical versions are
|
parameter, also historical versions are
|
||||||
shown.
|
shown.
|
||||||
|
|
||||||
emsdk update - Fetches a list of updates from the net (but
|
emsdk update - Updates emsdk to the newest version, and also
|
||||||
does not install them)
|
runs 'update-tags' (below).
|
||||||
|
|
||||||
|
emsdk update-tags - Fetches the most up to date list of available
|
||||||
|
Emscripten tagged and nightly releases.
|
||||||
|
|
||||||
emsdk install [options] <tool 1> <tool 2> <tool 3> ...
|
emsdk install [options] <tool 1> <tool 2> <tool 3> ...
|
||||||
- Downloads and installs given tools or SDKs.
|
- Downloads and installs given tools or SDKs.
|
||||||
@@ -1977,6 +1980,9 @@ def main():
|
|||||||
update_emsdk()
|
update_emsdk()
|
||||||
silentremove(sdk_path(EMSDK_SET_ENV)) # Clean up litter after old emsdk update which may have left this temp file around.
|
silentremove(sdk_path(EMSDK_SET_ENV)) # Clean up litter after old emsdk update which may have left this temp file around.
|
||||||
return 0
|
return 0
|
||||||
|
elif cmd == 'update-tags':
|
||||||
|
fetch_emscripten_tags()
|
||||||
|
return 0
|
||||||
elif cmd == 'activate':
|
elif cmd == 'activate':
|
||||||
permanently_activate = '--global' in sys.argv
|
permanently_activate = '--global' in sys.argv
|
||||||
if permanently_activate:
|
if permanently_activate:
|
||||||
|
|||||||
Reference in New Issue
Block a user