From 98ebd8e1f68fbc9044b6e336f208543448cacf27 Mon Sep 17 00:00:00 2001 From: Issac Lin Date: Sat, 22 Jan 2022 17:19:03 +0800 Subject: [PATCH] emscripten: Add version 3.1.1 (#3231) * emscripten: Add version 3.1.1 * use env_add_path instead --- bucket/emscripten.json | 46 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 bucket/emscripten.json diff --git a/bucket/emscripten.json b/bucket/emscripten.json new file mode 100644 index 0000000000..1dd8df9ad2 --- /dev/null +++ b/bucket/emscripten.json @@ -0,0 +1,46 @@ +{ + "##": ".bat won't be able to modify shell sessions of PowerShell, Fish, Bash etc. Therefore env_add_path is required.", + "version": "3.1.1", + "description": "LLVM to WebAssembly compiler. Compiles C/C++ to WebAssembly that can be run on most web browsers.", + "homepage": "https://emscripten.org/", + "license": "MIT|NCSA", + "notes": [ + "Run \"emsdk install latest\" and \"emsdk activate latest\" to set up emsdk.", + "For more details, check \"https://emscripten.org/docs/getting_started/downloads.html\"" + ], + "architecture": { + "64bit": { + "url": "https://github.com/emscripten-core/emsdk/archive/refs/tags/3.1.1.zip", + "hash": "604cadeecbd84eda429971d9b9a19e9fd8c2ecc3c2a1c2dc50a859dd5fcfb083" + } + }, + "extract_dir": "emsdk-3.1.1", + "pre_install": "if(!(Test-Path \"$persist_dir\\.emscripten\")) {New-Item \"$dir\\.emscripten\" -ItemType File | Out-Null}", + "env_add_path": ".", + "shortcuts": [ + [ + "emcmdprompt.bat", + "EMScripten Command Prompt" + ] + ], + "persist": [ + "java", + "node", + "python", + "upstream", + "zips", + ".emscripten" + ], + "checkver": { + "url": "https://github.com/emscripten-core/emsdk/tags", + "regex": "tag/([\\d.]+)" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://github.com/emscripten-core/emsdk/archive/refs/tags/$version.zip" + } + }, + "extract_dir": "emsdk-$version" + } +}