From 26c8bf0033c808fca7675fe42babbf3a4d56e787 Mon Sep 17 00:00:00 2001 From: Shokara Kou Date: Fri, 13 May 2022 11:38:36 -0400 Subject: add polymc, a multimc fork --- polymc/.footprint | 19 +++++++++++++++++++ polymc/.md5sum | 1 + polymc/Pkgfile | 23 +++++++++++++++++++++++ polymc/disable_offline_check.diff | 24 ++++++++++++++++++++++++ 4 files changed, 67 insertions(+) create mode 100644 polymc/.footprint create mode 100644 polymc/.md5sum create mode 100644 polymc/Pkgfile create mode 100644 polymc/disable_offline_check.diff diff --git a/polymc/.footprint b/polymc/.footprint new file mode 100644 index 0000000..c899638 --- /dev/null +++ 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 new file mode 100644 index 0000000..af96bfd --- /dev/null +++ b/polymc/.md5sum @@ -0,0 +1 @@ +75d8dbc95fd64ab14e8c2bdf270618e7 PolyMC-1.2.1.tar.gz diff --git a/polymc/Pkgfile b/polymc/Pkgfile new file mode 100644 index 0000000..aaf505e --- /dev/null +++ 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 new file mode 100644 index 0000000..b02bd3d --- /dev/null +++ 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." +- "

" +- "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.") -- cgit v1.2.3