mirror of
https://github.com/pion/webrtc.git
synced 2025-09-26 19:21:12 +08:00

TestBadCertificate is no longer needed for 1.24+ ``` CreateCertificate will now generate a serial number using a RFC 5280 compliant method when passed a template with a nil Certificate.SerialNumber field, instead of failing. ```
31 lines
799 B
Bash
Executable File
31 lines
799 B
Bash
Executable File
#!/bin/bash
|
|
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
|
|
# SPDX-FileCopyrightText: 2019 Alex Browne
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
# Check Node.js version
|
|
if [[ $(node --version) =~ v[0-9]\. ]]
|
|
then
|
|
echo "Node.js version >= 10 is required"
|
|
exit 1
|
|
fi
|
|
|
|
SOURCE="${BASH_SOURCE[0]}"
|
|
while [ -h "$SOURCE" ]; do
|
|
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
|
SOURCE="$(readlink "$SOURCE")"
|
|
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
|
|
done
|
|
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
|
|
|
NODE_WASM_EXEC="$(go env GOROOT)/lib/wasm/wasm_exec_node.js"
|
|
WASM_EXEC="$(go env GOROOT)/lib/wasm/wasm_exec.js"
|
|
|
|
if test -f "$NODE_WASM_EXEC"; then
|
|
exec node --require="${DIR}/node_shim.js" "$NODE_WASM_EXEC" "$@"
|
|
else
|
|
exec node --require="${DIR}/node_shim.js" "$WASM_EXEC" "$@"
|
|
fi
|
|
|
|
|