sneedmc/packages/debian/makedeb.sh
dada513 d821ffb829
Flatpak & Debian Packaging (#4)
Flatpak & Debian packages
2021-12-28 10:45:04 -05:00

11 lines
358 B
Bash
Executable File

#!/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