diff --git a/.gitignore b/.gitignore index 62cbcde..2d58e1b 100644 --- a/.gitignore +++ b/.gitignore @@ -17,4 +17,6 @@ plugin/deploy/ client/trackcontainers/ # Test generated files generate/p2prctest -generate/Test \ No newline at end of file +generate/Test +#ignore windows exe files +*.exe \ No newline at end of file diff --git a/Docs/Installation.md b/Docs/Installation.md index 0bbd309..6028567 100644 --- a/Docs/Installation.md +++ b/Docs/Installation.md @@ -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=//p2p-rendering-computation export PATH=//p2p-rendering-computation:${PATH} diff --git a/install.bat b/install.bat new file mode 100644 index 0000000..1408ebb --- /dev/null +++ b/install.bat @@ -0,0 +1,6 @@ +go build -o p2prc.exe + +setx PATH "%PATH%;%cd%" +setx P2PRC "%cd%" + +p2prc --dc \ No newline at end of file