Initial code commit

This commit is contained in:
Warezpeddler
2026-01-28 23:57:28 +00:00
parent 853db6cf83
commit 4429d07aab
9 changed files with 2937 additions and 2 deletions

22
build.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
echo "Building SMB Prowl PyInstaller executable..."
# Clean previous builds (preserve smb_prowl.spec if it exists)
rm -rf build dist
# Only remove auto-generated spec files, not the template
find . -maxdepth 1 -name "*.spec" ! -name "smb_prowl.spec" -delete 2>/dev/null || true
# Use the virtual environment's Python directly
if [ -d "venv" ]; then
echo "Using virtual environment Python: ./venv/bin/python3"
PYTHON_CMD="./venv/bin/python3"
else
echo "No virtual environment found, using system Python"
PYTHON_CMD="python3"
fi
# Build executable using the specified Python
$PYTHON_CMD -m PyInstaller --onefile --clean --additional-hooks-dir=hooks smb_prowl.py
echo "Build complete! Executable is in dist/smb_prowl"