aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2018-12-14 21:21:48 -0500
committerAndrew Rabert <6550543+nvllsvm@users.noreply.github.com>2018-12-14 21:21:48 -0500
commita73d255f51f135adbc2c352fef79f776ce9fcb02 (patch)
treedd6a198e3c104ebc732a615153c4bb5514e25660 /debian/rules
parent72f7e7b9541310e4b49f4fc324eab482c8d97dcf (diff)
Enable self-contained binary mode (#160)
* Build self-contained Debian linux-x64 binary * Update initscripts to use self-contained binary The binary is declared in the units intentionally rather than using the variable extrapolation from before, to avoid confusion since these can't really be moved reasonably. * With combined binary name, use pgrep instead * Remove dotnet-runtime dependency * Move the compiled scb to usr/bin * Update binary location for upstart/systemd * Move binary path; fix pidfile handling * Entirely remove the temporary usr/ dir * Don't move the compiled binary * Create /usr/bin symlink * Use the variable here * Update architecture to any * Add libcurl4-openssl build dependency * Update the build Dockerfile to install builddeps
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules
index 17e7d506c..0b790f2e4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,8 +15,8 @@ override_dh_auto_test:
override_dh_clistrip:
override_dh_auto_build:
- dotnet publish --configuration $(CONFIG) $(CURDIR)/MediaBrowser.sln --output='$(CURDIR)/usr/lib/jellyfin/bin'
+ dotnet publish --configuration $(CONFIG) $(CURDIR)/MediaBrowser.sln --output='$(CURDIR)/usr/lib/jellyfin/bin' --self-contained --runtime linux-x64
override_dh_auto_clean:
dotnet clean -maxcpucount:1 --configuration $(CONFIG) $(CURDIR)/MediaBrowser.sln || true
- rm -rf '$(CURDIR)/usr/lib/jellyfin'
+ rm -rf '$(CURDIR)/usr'