-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_linux.sh
More file actions
38 lines (31 loc) · 848 Bytes
/
build_linux.sh
File metadata and controls
38 lines (31 loc) · 848 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
32
33
34
35
36
37
38
#!/bin/bash
set -e
PROJECT_DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$PROJECT_DIR"
echo "=== OverPilas Linux Build ==="
echo "Project: $PROJECT_DIR"
# Create a clean venv
echo ">> Setting up venv..."
python3 -m venv .venv_linux
source .venv_linux/bin/activate
# Install only what's needed
echo ">> Installing dependencies..."
pip install --quiet --upgrade pip
pip install --quiet flask==2.3.3 werkzeug==2.3.7 pyinstaller==6.1.0
# Build
echo ">> Running PyInstaller..."
pyinstaller \
--onefile \
--name OverPilas \
--add-data "templates:templates" \
--add-data "static:static" \
app.py
deactivate
echo ""
echo "=== Done! ==="
echo "Binary: $PROJECT_DIR/dist/OverPilas"
echo ""
echo "To run on the target machine:"
echo " chmod +x dist/OverPilas"
echo " ./dist/OverPilas"
echo " Then open browser: http://127.0.0.1:5000"