mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-23 18:44:45 +01:00
Move web-build into Debian build rules
This removes the convoluted steps in docker-build.sh in favour of integrating the web-build sequence into the Debian rules file explicitly. This will allow the web-build to work properly outside of the boutique Docker container we build, thus allowing it to be build properly directly on a target system with dpkg-buildpackage.
This commit is contained in:
@@ -8,7 +8,9 @@ Build-Depends: debhelper (>= 9),
|
||||
libcurl4-openssl-dev,
|
||||
libfontconfig1-dev,
|
||||
libfreetype6-dev,
|
||||
libssl-dev
|
||||
libssl-dev,
|
||||
wget,
|
||||
npm | nodejs
|
||||
Standards-Version: 3.9.4
|
||||
Homepage: https://jellyfin.media/
|
||||
Vcs-Git: https://github.org/jellyfin/jellyfin.git
|
||||
|
||||
15
deployment/debian-package-x64/pkg-src/rules
Normal file → Executable file
15
deployment/debian-package-x64/pkg-src/rules
Normal file → Executable file
@@ -2,6 +2,8 @@
|
||||
CONFIG := Release
|
||||
TERM := xterm
|
||||
SHELL := /bin/bash
|
||||
WEB_TARGET := $(CURDIR)/MediaBrowser.WebDashboard/jellyfin-web
|
||||
WEB_VERSION := $(shell sed -n -e 's/^version: "\(.*\)"/\1/p' $(CURDIR)/build.yaml)
|
||||
|
||||
HOST_ARCH := $(shell arch)
|
||||
BUILD_ARCH := ${DEB_HOST_MULTIARCH}
|
||||
@@ -39,12 +41,25 @@ override_dh_auto_test:
|
||||
override_dh_clistrip:
|
||||
|
||||
override_dh_auto_build:
|
||||
echo $(WEB_VERSION)
|
||||
# Clone down and build Web frontend
|
||||
mkdir -p $(WEB_TARGET)
|
||||
wget -O web-src.tgz https://github.com/jellyfin/jellyfin-web/archive/v$(WEB_VERSION).tar.gz || wget -O web-src.tgz https://github.com/jellyfin/jellyfin-web/archive/master.tar.gz
|
||||
mkdir -p $(CURDIR)/web
|
||||
tar -xzf web-src.tgz -C $(CURDIR)/web/ --strip 1
|
||||
cd $(CURDIR)/web/ && npm install yarn
|
||||
cd $(CURDIR)/web/ && node_modules/yarn/bin/yarn install
|
||||
mv $(CURDIR)/web/dist/* $(WEB_TARGET)/
|
||||
# Build the application
|
||||
dotnet publish --configuration $(CONFIG) --output='$(CURDIR)/usr/lib/jellyfin/bin' --self-contained --runtime $(DOTNETRUNTIME) \
|
||||
"-p:GenerateDocumentationFile=false;DebugSymbols=false;DebugType=none" Jellyfin.Server
|
||||
|
||||
override_dh_auto_clean:
|
||||
dotnet clean -maxcpucount:1 --configuration $(CONFIG) Jellyfin.Server || true
|
||||
rm -f '$(CURDIR)/web-src.tgz'
|
||||
rm -rf '$(CURDIR)/usr'
|
||||
rm -rf '$(CURDIR)/web'
|
||||
rm -rf '$(WEB_TARGET)'
|
||||
|
||||
# Force the service name to jellyfin even if we're building jellyfin-nightly
|
||||
override_dh_installinit:
|
||||
|
||||
Reference in New Issue
Block a user