-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
26 lines (22 loc) · 728 Bytes
/
build.sh
File metadata and controls
26 lines (22 loc) · 728 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
#!/bin/bash
# Check if PyInstaller is installed
if ! command -v pyinstaller &> /dev/null; then
echo "Installing PyInstaller..."
pip install pyinstaller
fi
echo "Creating build directory..."
mkdir -p dist
# Build the executable
echo "Building executable..."
pyinstaller --clean --noconfirm build.spec
# Check if build was successful
if [ $? -eq 0 ]; then
echo -e "\n========================================="
echo "Build successful!"
echo "Executable is in the 'dist' folder"
echo "========================================="
else
echo -e "\n========================================="
echo "Build failed. Check the error messages above."
echo "========================================="
fi