3 Commits

2 changed files with 6 additions and 2 deletions
+4 -2
View File
@@ -6,7 +6,7 @@ set -euo pipefail
HERE="$(cd "$(dirname "$0")" && pwd)"
cd "$HERE"
VERSION="$(grep -oP '__version__\s*=\s*"\K[^"]+' gitswarm.py)"
VERSION="$(sed -n 's/^__version__[[:space:]]*=[[:space:]]*"\([^"]*\)".*/\1/p' gitswarm.py | head -n1)"
if [ -z "$VERSION" ]; then
echo "[build] no se pudo leer __version__ de gitswarm.py" >&2
exit 1
@@ -19,9 +19,11 @@ if [ ! -d .venv ]; then
echo "[build] creando venv…"
python3 -m venv .venv
.venv/bin/pip install --quiet --upgrade pip
.venv/bin/pip install --quiet -r requirements.txt
fi
echo "[build] sincronizando dependencias…"
.venv/bin/pip install --quiet -r requirements.txt
if ! .venv/bin/python -c "import nuitka" 2>/dev/null; then
echo "[build] instalando nuitka en el venv…"
.venv/bin/pip install --quiet nuitka
+2
View File
@@ -1,2 +1,4 @@
rich>=13.0
readchar>=4.0
# Usat per Nuitka per a comprimir el binari --onefile (build.sh)
zstandard>=0.22