aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Skoland <david.skoland@qt.io>2022-09-20 11:18:58 +0200
committerDavid Skoland <david.skoland@qt.io>2022-11-09 07:08:15 +0100
commit4a6f43ed8d4abdd4e862a65aded02a8f000d7238 (patch)
treefef122ec56c3b9afc623ef18c4e266f643ea6a51
parent9c21dd75d264b349621ff2093dae36aeb2032161 (diff)
wasm: Add actual emscripten installation to path in coin
I'm not sure where the emscripten-$version came from, maybe that's how it used to be? In any case, in the current version (3.1.x), the installation folder is in upstream/emscripten, so add PATH there to access all emscripten utils. Pick-to: 6.4 Change-Id: I648feae21bc5caecc3f0bf0a7d16238680a85590 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
-rwxr-xr-xcoin/provisioning/common/unix/emsdk.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/coin/provisioning/common/unix/emsdk.sh b/coin/provisioning/common/unix/emsdk.sh
index f74a32f0..b0601f50 100755
--- a/coin/provisioning/common/unix/emsdk.sh
+++ b/coin/provisioning/common/unix/emsdk.sh
@@ -58,9 +58,12 @@ else
pathNodeExecutable="node-$versionNode-linux-x64/bin/node"
fi
-SetEnvVar "PATH" "\"\$PATH:/opt/emsdk/emscripten-$version/\""
-SetEnvVar "EMSCRIPTEN" "/opt/emsdk/emscripten-$version"
-SetEnvVar "EMSDK" "/opt/emsdk"
-SetEnvVar "EMSDK_NODE" "/opt/emsdk/$pathNodeExecutable"
+emsdkPath="/opt/emsdk/"
+emscriptenPath="${emsdkPath}upstream/emscripten/"
+
+SetEnvVar "PATH" "\"\$PATH:${emscriptenPath}\""
+SetEnvVar "EMSCRIPTEN" "${emscriptenPath}"
+SetEnvVar "EMSDK" "${emsdkPath}"
+SetEnvVar "EMSDK_NODE" "${emsdkPath}${pathNodeExecutable}"
echo "Emsdk = $version" >> ~/versions.txt