-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·30 lines (23 loc) · 1.23 KB
/
Copy pathbuild.sh
File metadata and controls
executable file
·30 lines (23 loc) · 1.23 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
#!/usr/bin/env bash
# ==============================================================================
# Build and Install Linux SSD Reader for macOS
# ==============================================================================
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "$DIR"
echo "============================================================"
echo " 1. Building Linux SSD Reader with PyInstaller..."
echo "============================================================"
# Close any running instance of the app before rebuilding
killall LinuxSSDReader 2>/dev/null || true
# Run PyInstaller
export PYINSTALLER_CONFIG_DIR="$DIR/build/pyinstaller_config"
"./.venv/bin/python" -m PyInstaller --clean --noconfirm --distpath "$DIR/dist" --workpath "$DIR/build" "LinuxSSDReader.spec"
echo "============================================================"
echo " 2. Installing to /Applications..."
echo "============================================================"
"./install_app.sh"
echo "============================================================"
echo " Build & Installation complete!"
echo " You can now launch 'Linux SSD Reader' from Applications."
echo "============================================================"