test_plugin_mac.sh 759 B

1234567891011121314151617181920212223
  1. #!/bin/bash -eu
  2. export LIBWEBRTC_DOWNLOAD_URL=https://github.com/Unity-Technologies/com.unity.webrtc/releases/download/M92/webrtc-mac.zip
  3. export SOLUTION_DIR=$(pwd)/Plugin~
  4. # Download LibWebRTC
  5. curl -L $LIBWEBRTC_DOWNLOAD_URL > webrtc.zip
  6. unzip -d $SOLUTION_DIR/webrtc webrtc.zip
  7. # Build UnityRenderStreaming Plugin
  8. cd "$SOLUTION_DIR"
  9. cmake . \
  10. -G Xcode \
  11. -B build
  12. cmake \
  13. --build build \
  14. --config Debug \
  15. --target WebRTCLibTest
  16. # Copy and run the test on the Metal device
  17. scp -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" -r "$SOLUTION_DIR/build/WebRTCPluginTest/Debug" bokken@$BOKKEN_DEVICE_IP:~/com.unity.webrtc
  18. ssh -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" bokken@$BOKKEN_DEVICE_IP '~/com.unity.webrtc/WebRTCLibTest'