aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile.debian_package22
-rw-r--r--debian/control4
-rwxr-xr-xdebian/rules1
3 files changed, 24 insertions, 3 deletions
diff --git a/Dockerfile.debian_package b/Dockerfile.debian_package
new file mode 100644
index 000000000..31505b978
--- /dev/null
+++ b/Dockerfile.debian_package
@@ -0,0 +1,22 @@
+FROM debian:9
+
+# https://dotnet.microsoft.com/download/linux-package-manager/debian9/sdk-current
+RUN apt-get update \
+ && apt-get install -y apt-transport-https debhelper gnupg wget \
+ && wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg \
+ && mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ \
+ && wget -q https://packages.microsoft.com/config/debian/9/prod.list \
+ && mv prod.list /etc/apt/sources.list.d/microsoft-prod.list \
+ && chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg \
+ && chown root:root /etc/apt/sources.list.d/microsoft-prod.list \
+ && apt-get update \
+ && apt-get install -y dotnet-sdk-2.2
+
+WORKDIR /repo
+COPY . .
+
+RUN dpkg-buildpackage -us -uc \
+ && mkdir /dist \
+ && mv /jellyfin*deb /dist
+
+WORKDIR /dist
diff --git a/debian/control b/debian/control
index 41a491c08..bc5e05daa 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: misc
Priority: optional
Maintainer: Vasily <just.one.man@yandex.ru>
Build-Depends: debhelper (>= 9),
- dotnet-sdk-2.1,
+ dotnet-sdk-2.2,
libc6-dev
Standards-Version: 3.9.4
@@ -12,6 +12,6 @@ Replaces: mediabrowser, emby, emby-server-beta, jellyfin-dev, emby-server
Breaks: mediabrowser, emby, emby-server-beta, jellyfin-dev, emby-server
Conflicts: mediabrowser, emby, emby-server-beta, jellyfin-dev, emby-server
Architecture: all
-Depends: ${shlibs:Depends}, ${misc:Depends}, at, libsqlite3-0, dotnet-runtime-2.1, ffmpeg
+Depends: ${shlibs:Depends}, ${misc:Depends}, at, libsqlite3-0, dotnet-runtime-2.2, ffmpeg
Description: Jellyfin is a home media server.
It is built on top of other popular open source technologies such as Service Stack, jQuery, jQuery mobile, and Mono. It features a REST-based api with built-in documentation to facilitate client development. We also have client libraries for our api to enable rapid development.
diff --git a/debian/rules b/debian/rules
index 54c1e3dad..864b64f6f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,7 +15,6 @@ override_dh_auto_test:
override_dh_clistrip:
override_dh_auto_build:
- git submodule update --init
dotnet build --configuration $(CONFIG) $(CURDIR)/MediaBrowser.sln --output='$(CURDIR)/usr/lib/jellyfin/bin'
dotnet publish --configuration $(CONFIG) $(CURDIR)/MediaBrowser.sln --output='$(CURDIR)/usr/lib/jellyfin/bin'