Added automated install for windows

This commit is contained in:
Farhan Alvi
2021-10-15 22:29:15 +04:00
parent b325b848d1
commit c5efee3932
3 changed files with 17 additions and 2 deletions

4
.gitignore vendored
View File

@@ -17,4 +17,6 @@ plugin/deploy/
client/trackcontainers/
# Test generated files
generate/p2prctest
generate/Test
generate/Test
#ignore windows exe files
*.exe

View File

@@ -32,7 +32,14 @@ into a single binary
make install
```
### Add appropriate paths to .bashrc
#### For Windows
To set up P2PRC on Windows, simply run this batch file.
**Make sure you are not in admin mode when running this.**
```
.\install.bat
```
### Add appropriate paths to .bashrc
```
export P2PRC=/<PATH>/p2p-rendering-computation
export PATH=/<PATH>/p2p-rendering-computation:${PATH}

6
install.bat Normal file
View File

@@ -0,0 +1,6 @@
go build -o p2prc.exe
setx PATH "%PATH%;%cd%"
setx P2PRC "%cd%"
p2prc --dc