commit 26c8bf0033c808fca7675fe42babbf3a4d56e787
parent 0928690ff4f9b40a3194849985866a937abf256e
Author: Shokara Kou <kou@13f0.net>
Date: Fri, 13 May 2022 11:38:36 -0400
add polymc, a multimc fork
Diffstat:
4 files changed, 67 insertions(+), 0 deletions(-)
diff --git a/polymc/.footprint b/polymc/.footprint
@@ -0,0 +1,19 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/polymc
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/applications/
+-rw-r--r-- root/root usr/share/applications/org.polymc.PolyMC.desktop
+drwxr-xr-x root/root usr/share/icons/
+drwxr-xr-x root/root usr/share/icons/hicolor/
+drwxr-xr-x root/root usr/share/icons/hicolor/scalable/
+drwxr-xr-x root/root usr/share/icons/hicolor/scalable/apps/
+-rw-r--r-- root/root usr/share/icons/hicolor/scalable/apps/org.polymc.PolyMC.svg
+drwxr-xr-x root/root usr/share/jars/
+-rw-r--r-- root/root usr/share/jars/JavaCheck.jar
+-rw-r--r-- root/root usr/share/jars/NewLaunch.jar
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man6/
+-rw-r--r-- root/root usr/share/man/man6/polymc.6.gz
+drwxr-xr-x root/root usr/share/metainfo/
+-rw-r--r-- root/root usr/share/metainfo/org.polymc.PolyMC.metainfo.xml
diff --git a/polymc/.md5sum b/polymc/.md5sum
@@ -0,0 +1 @@
+75d8dbc95fd64ab14e8c2bdf270618e7 PolyMC-1.2.1.tar.gz
diff --git a/polymc/Pkgfile b/polymc/Pkgfile
@@ -0,0 +1,23 @@
+# Description: A custom FOSS Minecraft launcher that lets you manage multiple instances (Nuegia fork)
+# URL: https://git.nuegia.net/MultiMC/
+# Maintainer: Shokara Kou, shokara at kalli dot st
+# Depends on: openjdk8 qt5 cmake
+
+name=polymc
+version=1.2.1
+release=1
+source=(https://github.com/$name/$name/releases/download/$version/PolyMC-$version.tar.gz)
+
+build() {
+ cd PolyMC-$version
+
+ mkdir build
+ cd build
+
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DLauncher_PORTABLE=OFF
+ make
+ make DESTDIR=$PKG install
+}
diff --git a/polymc/disable_offline_check.diff b/polymc/disable_offline_check.diff
@@ -0,0 +1,24 @@
+diff --git a/launcher/ui/pages/global/AccountListPage.cpp b/launcher/ui/pages/global/AccountListPage.cpp
+index 6e1e2183..6821f192 100644
+--- a/launcher/ui/pages/global/AccountListPage.cpp
++++ b/launcher/ui/pages/global/AccountListPage.cpp
+@@ -186,19 +186,6 @@ void AccountListPage::on_actionAddMicrosoft_triggered()
+
+ void AccountListPage::on_actionAddOffline_triggered()
+ {
+- if (!m_accounts->anyAccountIsValid()) {
+- QMessageBox::warning(
+- this,
+- tr("Error"),
+- tr(
+- "You must add a Microsoft or Mojang account that owns Minecraft before you can add an offline account."
+- "<br><br>"
+- "If you have lost your account you can contact Microsoft for support."
+- )
+- );
+- return;
+- }
+-
+ MinecraftAccountPtr account = OfflineLoginDialog::newAccount(
+ this,
+ tr("Please enter your desired username to add your offline account.")