aboutsummaryrefslogtreecommitdiff
path: root/packages/debian/makedeb.sh
diff options
context:
space:
mode:
authordada513 <dada513@protonmail.com>2021-12-28 15:45:04 +0000
committerGitHub <noreply@github.com>2021-12-28 10:45:04 -0500
commitd821ffb8295ca621302a0b8fe7421405af16bceb (patch)
treea1f602eccab2448d00ebd0ed942146ce1ff3ddf9 /packages/debian/makedeb.sh
parentbe5dc5db7094b7a740db004e17996113ca437b56 (diff)
downloadPrismLauncher-d821ffb8295ca621302a0b8fe7421405af16bceb.tar.gz
PrismLauncher-d821ffb8295ca621302a0b8fe7421405af16bceb.tar.bz2
PrismLauncher-d821ffb8295ca621302a0b8fe7421405af16bceb.zip
Flatpak & Debian Packaging (#4)
Flatpak & Debian packages
Diffstat (limited to 'packages/debian/makedeb.sh')
-rwxr-xr-xpackages/debian/makedeb.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/debian/makedeb.sh b/packages/debian/makedeb.sh
new file mode 100755
index 00000000..5a8c71dd
--- /dev/null
+++ b/packages/debian/makedeb.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+mkdir builddir
+cd builddir
+cmake -DLauncher_LAYOUT=lin-system -DCMAKE_INSTALL_PREFIX=../polymc/usr ../../../
+make -j$(nproc) install
+cd ..
+VERSION_PLACEHOLDER=$(git describe --tags | sed 's/-.*//')
+cp polymc/DEBIAN/control.template polymc/DEBIAN/control
+sed -i "2s/.*/Version: $VERSION_PLACEHOLDER/" polymc/DEBIAN/control
+dpkg-deb --build polymc