mirror of
https://github.com/pion/webrtc.git
synced 2025-10-06 15:46:54 +08:00

Removed SDP dependency from ice files. Exported string to ice enum functions. Exported ICEServer.Validate.
24 lines
713 B
Bash
Executable File
24 lines
713 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright 2018 The Go Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style
|
|
# license that can be found in the LICENSE file.
|
|
# Modified work copyright 2019 Alex Browne.
|
|
|
|
# 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 )"
|
|
|
|
# We changed this line to require our node_shim.js.
|
|
exec node --require="${DIR}/node_shim.js" "$(go env GOROOT)/misc/wasm/wasm_exec.js" "$@"
|