-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild_client.sh
More file actions
executable file
·53 lines (45 loc) · 1.19 KB
/
build_client.sh
File metadata and controls
executable file
·53 lines (45 loc) · 1.19 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
# Build script for LabLink GUI Client
set -e # Exit on error
echo "=================================="
echo "LabLink Client Build Script"
echo "=================================="
echo
# Check if pyinstaller is installed
if ! command -v pyinstaller &> /dev/null; then
echo "PyInstaller not found. Installing..."
pip install pyinstaller
fi
# Change to client directory
cd client
# Clean previous builds
echo "Cleaning previous builds..."
rm -rf build/ dist/
# Build the application
echo "Building LabLink client..."
pyinstaller lablink.spec
# Check if build was successful
if [ -f "dist/LabLink" ] || [ -f "dist/LabLink.exe" ] || [ -d "dist/LabLink.app" ]; then
echo
echo "✓ Build successful!"
echo
echo "Output location:"
ls -lh dist/
echo
echo "To run:"
if [[ "$OSTYPE" == "darwin"* ]]; then
echo " open dist/LabLink.app"
elif [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "cygwin" ]]; then
echo " dist\\LabLink.exe"
else
echo " ./dist/LabLink"
fi
else
echo
echo "✗ Build failed!"
exit 1
fi
echo
echo "=================================="
echo "Build complete!"
echo "=================================="