build(debian): offline pip dependency installation

This commit is contained in:
2026-05-25 18:00:49 -04:00
parent d8af833ce0
commit 772c8e56ec
3 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -6,4 +6,4 @@ templates/* opt/navidrome-uploader/templates/
static/css/* opt/navidrome-uploader/static/css/
static/js/* opt/navidrome-uploader/static/js/
contrib/navidrome-uploader.service lib/systemd/system/navidrome-uploader.service
debian/wheels/* opt/navidrome-uploader/wheels/
+2 -2
View File
@@ -10,8 +10,8 @@ case "$1" in
chown -R "$APP_USER:$APP_USER" "$APP_DIR"
runuser -u "$APP_USER" -- python3 -m venv "$VENV_DIR"
runuser -u "$APP_USER" -- "$VENV_DIR/bin/pip" install --no-cache-dir --upgrade pip
runuser -u "$APP_USER" -- "$VENV_DIR/bin/pip" install --no-cache-dir -r "$APP_DIR/requirements.txt"
runuser -u "$APP_USER" -- "$VENV_DIR/bin/pip" install --no-cache-dir --no-index --find-links="$APP_DIR/wheels" -r "$APP_DIR/requirements.txt"
if command -v systemctl >/dev/null 2>&1; then
systemctl daemon-reload || true
+5
View File
@@ -3,6 +3,11 @@
%:
dh $@
override_dh_auto_build:
dh_auto_build
mkdir -p debian/wheels
pip wheel --no-cache-dir -r requirements.txt pip -w debian/wheels
override_dh_install:
dh_install
install -d debian/navidrome-uploader/etc/default/navidrome-uploader