mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2026-10-27 09:40:40 +00:00
feat: Release v0.1.1 with standalone Linux binary and improved portable bundling
This commit is contained in:
1 parent
838250c588
commit
4046e27e19
5 files changed
+10
-8
No files matched your search
@@ -2,3 +2,4 @@ include voxvera/templates/**
|
||||
include voxvera/src/**
|
||||
include voxvera/resources/**
|
||||
include voxvera/locales/**
|
||||
include voxvera/resources/bin/**
|
||||
+2
-2
@@ -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"}]
|
||||
|
||||
@@ -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" \
|
||||
|
||||
@@ -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():
|
||||
|
||||
Executable
BIN
Binary file not shown.
Reference in new issue
Block a user