diff --git a/.goreleaser.yml b/.goreleaser.yml index 6f8696c..47dc55e 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -20,6 +20,9 @@ archives: windows: Windows 386: i386 amd64: x86_64 + files: + - install-binary.sh + - install-binary.bat checksum: name_template: 'checksums.txt' snapshot: diff --git a/install-binary.bat b/install-binary.bat new file mode 100644 index 0000000..9bcd39d --- /dev/null +++ b/install-binary.bat @@ -0,0 +1,4 @@ +setx PATH "%PATH%;%cd%" +setx P2PRC "%cd%" + +p2p-rendering-computation.exe --dc \ No newline at end of file diff --git a/install-binary.sh b/install-binary.sh new file mode 100644 index 0000000..9f5ce8f --- /dev/null +++ b/install-binary.sh @@ -0,0 +1,8 @@ +# This script setups up the project P2PRC +echo '# Add the following paths to .bashrc or .zshrc based on the configuration you have set' +echo export P2PRC=$PWD +echo export PATH=$PWD:\${PATH} +export P2PRC=${PWD} +export PATH=${PWD}:${PATH} + +./p2p-rendering-computation --dc \ No newline at end of file