build(debian): offline pip dependency installation
This commit is contained in:
Vendored
+1
-1
@@ -6,4 +6,4 @@ templates/* opt/navidrome-uploader/templates/
|
|||||||
static/css/* opt/navidrome-uploader/static/css/
|
static/css/* opt/navidrome-uploader/static/css/
|
||||||
static/js/* opt/navidrome-uploader/static/js/
|
static/js/* opt/navidrome-uploader/static/js/
|
||||||
contrib/navidrome-uploader.service lib/systemd/system/navidrome-uploader.service
|
contrib/navidrome-uploader.service lib/systemd/system/navidrome-uploader.service
|
||||||
|
debian/wheels/* opt/navidrome-uploader/wheels/
|
||||||
|
|||||||
Vendored
+2
-2
@@ -10,8 +10,8 @@ case "$1" in
|
|||||||
chown -R "$APP_USER:$APP_USER" "$APP_DIR"
|
chown -R "$APP_USER:$APP_USER" "$APP_DIR"
|
||||||
|
|
||||||
runuser -u "$APP_USER" -- python3 -m venv "$VENV_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
|
if command -v systemctl >/dev/null 2>&1; then
|
||||||
systemctl daemon-reload || true
|
systemctl daemon-reload || true
|
||||||
|
|||||||
Vendored
+5
@@ -3,6 +3,11 @@
|
|||||||
%:
|
%:
|
||||||
dh $@
|
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:
|
override_dh_install:
|
||||||
dh_install
|
dh_install
|
||||||
install -d debian/navidrome-uploader/etc/default/navidrome-uploader
|
install -d debian/navidrome-uploader/etc/default/navidrome-uploader
|
||||||
|
|||||||
Reference in New Issue
Block a user