diff --git a/MANIFEST.in b/MANIFEST.in index c92091c..b5cbb8e 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,3 +2,4 @@ include voxvera/templates/** include voxvera/src/** include voxvera/resources/** include voxvera/locales/** +include voxvera/resources/bin/** diff --git a/pyproject.toml b/pyproject.toml index ef83801..48ccf19 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,11 +10,11 @@ include = ["voxvera*"] include-package-data = true [tool.setuptools.package-data] -voxvera = ["templates/**", "src/**", "resources/**", "locales/**"] +voxvera = ["templates/**", "src/**", "resources/**", "locales/**", "resources/bin/**"] [project] name = "voxvera" -version = "0.1.0" +version = "0.1.1" description = "VoxVera CLI utilities" readme = "README.md" authors = [{name = "VoxVera"}] diff --git a/scripts/build_binaries.sh b/scripts/build_binaries.sh index 6612f12..2c1b44b 100755 --- a/scripts/build_binaries.sh +++ b/scripts/build_binaries.sh @@ -10,7 +10,7 @@ cd "$(dirname "$0")/.." echo "Checking for PyInstaller..." if ! command -v pyinstaller &> /dev/null; then echo "PyInstaller not found. Installing..." - pip install pyinstaller + pip install pyinstaller --break-system-packages fi # Clean previous builds @@ -19,12 +19,11 @@ mkdir -p voxvera/resources/bin echo "Building VoxVera binary for $(uname)..." +# Use python module to call pyinstaller +PY_CMD="python3 -m PyInstaller" + # Build the binary -# --onefile: Create a single executable -# --add-data: Include non-python resources -# --name: Resulting binary name -# We include locales, src (templates), and the default resources -pyinstaller --onefile \ +$PY_CMD --onefile \ --add-data "voxvera/locales:voxvera/locales" \ --add-data "voxvera/src:voxvera/src" \ --add-data "voxvera/templates:voxvera/templates" \ diff --git a/voxvera/__init__.py b/voxvera/__init__.py index b0978f4..7190b10 100644 --- a/voxvera/__init__.py +++ b/voxvera/__init__.py @@ -1,6 +1,8 @@ import sys from pathlib import Path +__version__ = "0.1.1" + # Add the vendor directory to sys.path so we can run without pip install vendor_dir = Path(__file__).parent / "vendor" if vendor_dir.exists(): diff --git a/voxvera/resources/bin/voxvera-linux b/voxvera/resources/bin/voxvera-linux new file mode 100755 index 0000000..74e1039 Binary files /dev/null and b/voxvera/resources/bin/voxvera-linux differ