This commit is contained in:
parent
b677510a0e
commit
002dd57796
19
main.sh
19
main.sh
@ -18,7 +18,7 @@ export CARGO_TARGET_DIR=target
|
||||
sed -i 's:../../../lib64/libalvr_vulkan_layer.so:libalvr_vulkan_layer.so:' alvr/vulkan_layer/layer/alvr_x86_64.json
|
||||
cargo fetch --locked --target "x86_64-unknown-linux-gnu"
|
||||
export ALVR_ROOT_DIR=/usr
|
||||
export ALVR_LIBRARIES_DIR="$ALVR_ROOT_DIR/lib/x86_64-linux-gnu"
|
||||
export ALVR_LIBRARIES_DIR="$ALVR_ROOT_DIR/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)"
|
||||
export ALVR_OPENVR_DRIVER_ROOT_DIR="$ALVR_LIBRARIES_DIR/steamvr/alvr/"
|
||||
export ALVR_VRCOMPOSITOR_WRAPPER_DIR="$ALVR_LIBRARIES_DIR/alvr/"
|
||||
export FIREWALL_SCRIPT_DIR="$ALVR_ROOT_DIR/share/alvr/"
|
||||
@ -42,28 +42,29 @@ install -Dm644 LICENSE -t "../alvr/usr/share/licenses/alvr/"
|
||||
install -Dm755 target/release/alvr_dashboard -t "../alvr/usr/bin/"
|
||||
|
||||
# vrcompositor wrapper
|
||||
install -Dm755 target/release/alvr_vrcompositor_wrapper "../alvr/usr/lib/x86_64-linux-gnu/alvr/vrcompositor-wrapper"
|
||||
install -Dm755 target/release/alvr_vrcompositor_wrapper "../alvr/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/alvr/vrcompositor-wrapper"
|
||||
|
||||
# OpenVR Driver
|
||||
install -Dm644 target/release/libalvr_server.so "../alvr/usr/lib/x86_64-linux-gnu/steamvr/alvr/bin/linux64/driver_alvr_server.so"
|
||||
install -Dm644 alvr/xtask/resources/driver.vrdrivermanifest -t "../alvr/usr/lib/x86_64-linux-gnu/steamvr/alvr/"
|
||||
install -Dm644 target/release/libalvr_server.so "../alvr/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/steamvr/alvr/bin/linux64/driver_alvr_server.so"
|
||||
install -Dm644 alvr/xtask/resources/driver.vrdrivermanifest -t "../alvr/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/steamvr/alvr/"
|
||||
|
||||
# Vulkan Layer
|
||||
install -Dm644 target/release/libalvr_vulkan_layer.so -t "../alvr/usr/lib/x86_64-linux-gnu/"
|
||||
install -Dm644 target/release/libalvr_vulkan_layer.so -t "../alvr/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/"
|
||||
install -Dm644 alvr/vulkan_layer/layer/alvr_x86_64.json -t "../alvr/usr/share/vulkan/explicit_layer.d/"
|
||||
|
||||
# Desktop
|
||||
install -Dm644 packaging/freedesktop/alvr.desktop -t "../alvr/usr/share/applications"
|
||||
install -Dm644 alvr/xtask/resources/alvr.desktop -t "../alvr/usr/share/applications"
|
||||
|
||||
|
||||
# Icons
|
||||
install -d ../alvr/usr/share/icons/hicolor/{16x16,32x32,48x48,64x64,128x128,256x256}/apps/
|
||||
cp -ar icons/* ../alvr/usr/share/icons/
|
||||
|
||||
# Firewall
|
||||
install -Dm644 "packaging/firewall/alvr-firewalld.xml" "../alvr/usr/lib/x86_64-linux-gnu/firewalld/services/alvr.xml"
|
||||
install -Dm644 "packaging/firewall/ufw-alvr" -t "../alvr/etc/ufw/applications.d/"
|
||||
install -Dm644 "alvr/xtask/firewall/alvr-firewalld.xml" "../alvr/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/firewalld/services/alvr.xml"
|
||||
install -Dm644 "alvr/xtask/firewall/ufw-alvr" -t "../alvr/etc/ufw/applications.d/"
|
||||
|
||||
install -Dm755 packaging/firewall/alvr_fw_config.sh -t "../alvr/usr/share/alvr/"
|
||||
install -Dm755 "alvr/xtask/firewall/alvr_fw_config.sh" -t "../alvr/usr/share/alvr/"
|
||||
|
||||
cd ../alvr
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user