diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d0dfc35..9bc99522 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -210,6 +210,7 @@ elseif(Launcher_LAYOUT_REAL STREQUAL "lin-system") set(Launcher_SHARE_DEST_DIR "share/polymc" CACHE STRING "Path to the shared data directory") set(JARS_DEST_DIR "${Launcher_SHARE_DEST_DIR}/jars") set(Launcher_DESKTOP_DEST_DIR "share/applications" CACHE STRING "Path to the desktop file directory") + set(Launcher_METAINFO_DEST_DIR "share/metainfo" CACHE STRING "Path to the metainfo directory") set(BINARY_DEST_DIR ${Launcher_BINARY_DEST_DIR}) set(LIBRARY_DEST_DIR ${Launcher_LIBRARY_DEST_DIR}) @@ -218,6 +219,7 @@ elseif(Launcher_LAYOUT_REAL STREQUAL "lin-system") SET(Launcher_APP_BINARY_DEFS "-DMULTIMC_JARS_LOCATION=${CMAKE_INSTALL_PREFIX}/${JARS_DEST_DIR}" "-DLAUNCHER_LINUX_DATADIR") install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${Launcher_Desktop} DESTINATION ${Launcher_DESKTOP_DEST_DIR}) + install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${Launcher_MetaInfo} DESTINATION ${Launcher_METAINFO_DEST_DIR}) # install as bundle with no dependencies included set(INSTALL_BUNDLE "nodeps") diff --git a/program_info/CMakeLists.txt b/program_info/CMakeLists.txt index 840c3fa2..045b92ae 100644 --- a/program_info/CMakeLists.txt +++ b/program_info/CMakeLists.txt @@ -8,9 +8,10 @@ set(Launcher_UserAgent "${Launcher_CommonName}/5.0" PARENT_SCOPE) set(Launcher_ConfigFile "polymc.cfg" PARENT_SCOPE) set(Launcher_Git "https://github.com/PolyMC/PolyMC" PARENT_SCOPE) -set(Launcher_Desktop "program_info/polymc.desktop" PARENT_SCOPE) +set(Launcher_Desktop "program_info/org.polymc.PolyMC.desktop" PARENT_SCOPE) +set(Launcher_MetaInfo "program_info/org.polymc.PolyMC.metainfo.xml" PARENT_SCOPE) set(Launcher_Branding_ICNS "program_info/polymc.icns" PARENT_SCOPE) set(Launcher_Branding_WindowsRC "program_info/polymc.rc" PARENT_SCOPE) set(Launcher_Branding_LogoQRC "program_info/polymc.qrc" PARENT_SCOPE) -configure_file(polymc.desktop.in polymc.desktop) +configure_file(org.polymc.PolyMC.desktop.in org.polymc.PolyMC.desktop) diff --git a/program_info/genicons.sh b/program_info/genicons.sh index 2ed39129..e74aa991 100755 --- a/program_info/genicons.sh +++ b/program_info/genicons.sh @@ -5,7 +5,7 @@ inkscape -w 24 -h 24 -o polymc_24.png polymc.svg inkscape -w 32 -h 32 -o polymc_32.png polymc.svg inkscape -w 48 -h 48 -o polymc_48.png polymc.svg inkscape -w 64 -h 64 -o polymc_64.png polymc.svg -inkscape -w 128 -h 128 -o polymc_128.png polymc.svg +inkscape -w 128 -h 128 -o polymc_128.png org.polymc.PolyMC.svg convert polymc_128.png polymc_64.png polymc_48.png polymc_32.png polymc_24.png polymc_16.png polymc.ico diff --git a/program_info/polymc.desktop.in b/program_info/org.polymc.PolyMC.desktop.in similarity index 92% rename from program_info/polymc.desktop.in rename to program_info/org.polymc.PolyMC.desktop.in index 1549cb9b..f89f63d2 100644 --- a/program_info/polymc.desktop.in +++ b/program_info/org.polymc.PolyMC.desktop.in @@ -6,6 +6,6 @@ Type=Application Terminal=false Exec=@Launcher_APP_BINARY_NAME@ StartupNotify=true -Icon=polymc +Icon=org.polymc.PolyMC Categories=Game; Keywords=game;minecraft;launcher; diff --git a/program_info/org.polymc.PolyMC.metainfo.xml b/program_info/org.polymc.PolyMC.metainfo.xml new file mode 100644 index 00000000..60b0ee73 --- /dev/null +++ b/program_info/org.polymc.PolyMC.metainfo.xml @@ -0,0 +1,60 @@ + + + org.polymc.PolyMC + org.polymc.PolyMC + org.polymc.PolyMC.desktop + PolyMC + PolyMC Team + A custom launcher for Minecraft that allows you to easily manage multiple installations of Minecraft at once + CC0-1.0 + GPL-3.0-only + https://polymc.org/ + https://github.com/PolyMC/PolyMC#help--support + +

+ PolyMC is a custom launcher for Minecraft that focuses on predictability, long term stability and simplicity. + Features: + - Easily install game modifications, such as Fabric or Forge + - Control your java settings + - Manage worlds and resource packs from the launcher + - See logs and other details easily + - Kill Minecraft in case of a crash/freeze + - Isolate minecraft instances to keep everything clean + + This flatpak includes Wayland support without XWayland: to enable, tick Use system installation of GLFW... in the settings of a Minecraft instance. + All java versions that are required by Minecraft are included. + If using a Hybrid-Graphics device, you can use the prime-run script as a wrapper command to run Minecraft using the dedicated graphics card. +

+
+ + + The main PolyMC window + https://i.imgur.com/q2GcDo4.png + + + + + + + moderate + none + none + none + none + none + none + none + none + none + none + none + none + intense + none + none + none + none + none + none + +
\ No newline at end of file diff --git a/program_info/polymc.svg b/program_info/org.polymc.PolyMC.svg similarity index 100% rename from program_info/polymc.svg rename to program_info/org.polymc.PolyMC.svg diff --git a/program_info/polymc.qrc b/program_info/polymc.qrc index ea238945..9ea695de 100644 --- a/program_info/polymc.qrc +++ b/program_info/polymc.qrc @@ -1,6 +1,6 @@ - polymc.svg + org.polymc.PolyMC.svg