-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·31 lines (24 loc) · 933 Bytes
/
Copy pathbuild.sh
File metadata and controls
executable file
·31 lines (24 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# See http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -euo pipefail
# Build Haptic Pancake bridge app on Linux
#
# NOTE: If changing this, make sure "build.bat" is also updated!
# Build and activate a Python virtual environment to keep your system clean
if [ ! -d "ignored-hpb-venv" ]; then
python3 -m venv "ignored-hpb-venv"
fi
source "ignored-hpb-venv/bin/activate"
# Install/update Haptic Pancake dependencies
pip3 install -r "BridgeApp/requirements.txt"
# Add PyInstaller
pip3 install pyinstaller
pyinstaller -wF --collect-all openvr --name hapticpancake_linux --icon=Images\icon.ico BridgeApp/main.py
# "hapticpancake.spec"
# Spec files don't need to stick around if you're generating them with a script
# and not modifying the result
rm "hapticpancake_linux.spec"
echo
echo "--------------------------------"
echo "Result: dist/hapticpancake_linux"
echo "--------------------------------"