Added automated install for windows
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -17,4 +17,6 @@ plugin/deploy/
|
|||||||
client/trackcontainers/
|
client/trackcontainers/
|
||||||
# Test generated files
|
# Test generated files
|
||||||
generate/p2prctest
|
generate/p2prctest
|
||||||
generate/Test
|
generate/Test
|
||||||
|
#ignore windows exe files
|
||||||
|
*.exe
|
||||||
@@ -32,7 +32,14 @@ into a single binary
|
|||||||
make install
|
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 P2PRC=/<PATH>/p2p-rendering-computation
|
||||||
export PATH=/<PATH>/p2p-rendering-computation:${PATH}
|
export PATH=/<PATH>/p2p-rendering-computation:${PATH}
|
||||||
|
|||||||
6
install.bat
Normal file
6
install.bat
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
go build -o p2prc.exe
|
||||||
|
|
||||||
|
setx PATH "%PATH%;%cd%"
|
||||||
|
setx P2PRC "%cd%"
|
||||||
|
|
||||||
|
p2prc --dc
|
||||||
Reference in New Issue
Block a user