Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build + add build script #43

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[target.x86_64-pc-windows-gnu]
linker = "x86_64-w64-mingw32-cc"
linker = "x86_64-w64-mingw32-gcc"
runner = "wine64"
35 changes: 35 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/sh


# Credits to https://github.com/santeri3700/vive-pro-2-on-linux


set -e

export VIVEPRO2DRVDIR="$(pwd)"


cd sewer
cargo +nightly build --all-features --verbose --release



cd $VIVEPRO2DRVDIR/bin/driver-proxy
cargo +nightly build --release --all-features --verbose

cd $VIVEPRO2DRVDIR/bin/lens-server
cargo +nightly build --release --target x86_64-pc-windows-gnu --all-features --verbose


cd $VIVEPRO2DRVDIR/dist-proxy/
rm -Rf ./bin ./lens-server/ ./driver_lighthouse.so || echo "Delete failed, probably fine"
mkdir -p bin ./lens-server/

echo "Copying files"
cp $VIVEPRO2DRVDIR/sewer/target/release/sewer ./bin
cp $VIVEPRO2DRVDIR/target/x86_64-pc-windows-gnu/release/lens-server.exe ./lens-server/
cp $VIVEPRO2DRVDIR/target/release/libdriver_proxy.so ./driver_lighthouse.so


echo "Installing..."
./install.sh