Flatpak & Debian Packaging (#4)

Flatpak & Debian packages
This commit is contained in:
dada513
2021-12-28 15:45:04 +00:00
committed by GitHub
parent be5dc5db70
commit d821ffb829
8 changed files with 156 additions and 0 deletions

10
packages/debian/makedeb.sh Executable file
View File

@ -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

View File

@ -0,0 +1,9 @@
Package: polymc
Version:
Section: games
Priority: optional
Architecture: amd64
Depends: libqt5core5a, libqt5network5, libqt5gui5
Maintainer: PolyMC Team
Description: PolyMC
A custom launcher for Minecraft that allows you to easily manage multiple installations of Minecraft at once

View File

@ -0,0 +1,11 @@
[Desktop Entry]
Version=1.0
Name=PolyMC
Comment=A custom launcher for Minecraft that allows you to easily manage multiple installations of Minecraft at once.
Type=Application
Terminal=false
Exec=polymc
StartupNotify=true
Icon=null
Categories=Game;
Keywords=game;minecraft;launcher;