forked from GPUOpen-LibrariesAndSDKs/FidelityFX-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSetupMOQ.bat
35 lines (27 loc) · 879 Bytes
/
SetupMOQ.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@echo off
:: Clone moq-rs repository
IF NOT EXIST build\moq-rs (
git clone /~https://github.com/kixelated/moq-rs build\moq-rs
)
:: Checkout the correct commit
cd build\moq-rs
git checkout 97f27996cea4972cf0a51b187d6b0321297d60ad
:: Build moq-rs
cargo build --release
:: Copy moq-pub and moq-relay to the bin directory
copy target\release\moq-pub.exe ..\..\bin
copy target\release\moq-relay.exe ..\..\bin
:: Generate certificates
cd dev
go run filippo.io/mkcert -ecdsa -install
go run filippo.io/mkcert -ecdsa -days 10 -cert-file localhost.crt -key-file localhost.key localhost 127.0.0.1 ::1
:: Copy certificates to the bin directory
mkdir ..\..\..\bin\cert
copy localhost.crt ..\..\..\bin\cert\localhost.crt
copy localhost.key ..\..\..\bin\cert\localhost.key
:: Return to the root directory
cd ..\..\..
:: Build the demo page
cd demo
npm install && npm run build
cd ..