From e6246a9306567f5646d3bc1971a1c5c4cf8f4f54 Mon Sep 17 00:00:00 2001 From: Lenny McLennington Date: Mon, 20 Dec 2021 02:41:08 +0000 Subject: Move MSA Client ID to the same place as the others MSA Client ID has been moved to CMakeLists.txt, and defaults to the Client ID for the PolyMC application. Removed secrets/notsecrets library, replace with (temporary?) program_info subdirectory. --- program_info/CMakeLists.txt | 13 ++ program_info/Launcher.icns | Bin 0 -> 304757 bytes program_info/Launcher.ico | Bin 0 -> 102134 bytes program_info/Launcher.manifest | 31 +++++ program_info/README.md | 5 + program_info/genicons.sh | 18 +++ program_info/launcher.rc | 29 +++++ program_info/logo.qrc | 8 ++ program_info/logo.svg | 271 +++++++++++++++++++++++++++++++++++++++++ 9 files changed, 375 insertions(+) create mode 100644 program_info/CMakeLists.txt create mode 100644 program_info/Launcher.icns create mode 100644 program_info/Launcher.ico create mode 100644 program_info/Launcher.manifest create mode 100644 program_info/README.md create mode 100755 program_info/genicons.sh create mode 100644 program_info/launcher.rc create mode 100644 program_info/logo.qrc create mode 100644 program_info/logo.svg (limited to 'program_info') diff --git a/program_info/CMakeLists.txt b/program_info/CMakeLists.txt new file mode 100644 index 00000000..f418f8b2 --- /dev/null +++ b/program_info/CMakeLists.txt @@ -0,0 +1,13 @@ +set(Launcher_CommonName "PolyMC") + +set(Launcher_Copyright "PolyMC Contributors" PARENT_SCOPE) +set(Launcher_Domain "github.com/PolyMC" PARENT_SCOPE) +set(Launcher_Name "${Launcher_CommonName}" PARENT_SCOPE) +set(Launcher_DisplayName "${Launcher_CommonName} 5" PARENT_SCOPE) +set(Launcher_UserAgent "${Launcher_CommonName}/5.0" PARENT_SCOPE) +set(Launcher_ConfigFile "polymc.cfg" PARENT_SCOPE) +set(Launcher_Git "https://github.com/PolyMC/Launcher" PARENT_SCOPE) + +set(Launcher_Branding_ICNS "program_info/Launcher.icns" PARENT_SCOPE) +set(Launcher_Branding_WindowsRC "program_info/launcher.rc" PARENT_SCOPE) +set(Launcher_Branding_LogoQRC "program_info/logo.qrc" PARENT_SCOPE) diff --git a/program_info/Launcher.icns b/program_info/Launcher.icns new file mode 100644 index 00000000..951b74fc Binary files /dev/null and b/program_info/Launcher.icns differ diff --git a/program_info/Launcher.ico b/program_info/Launcher.ico new file mode 100644 index 00000000..9308958f Binary files /dev/null and b/program_info/Launcher.ico differ diff --git a/program_info/Launcher.manifest b/program_info/Launcher.manifest new file mode 100644 index 00000000..0ee781ee --- /dev/null +++ b/program_info/Launcher.manifest @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + Custom Minecraft launcher for managing multiple installs. + + + + + + + + + + + + + + + diff --git a/program_info/README.md b/program_info/README.md new file mode 100644 index 00000000..01c4d02b --- /dev/null +++ b/program_info/README.md @@ -0,0 +1,5 @@ +# PolyMC Program Info + +This is PolyMC's program info which contains information about: +- Application name and logo (and branding in general) +- Various URLs and API endpoints diff --git a/program_info/genicons.sh b/program_info/genicons.sh new file mode 100755 index 00000000..e6f704f9 --- /dev/null +++ b/program_info/genicons.sh @@ -0,0 +1,18 @@ +#/bin/bash + +inkscape -w 16 -h 16 -o logo_16.png logo.svg +inkscape -w 24 -h 24 -o logo_24.png logo.svg +inkscape -w 32 -h 32 -o logo_32.png logo.svg +inkscape -w 48 -h 48 -o logo_48.png logo.svg +inkscape -w 64 -h 64 -o logo_64.png logo.svg +inkscape -w 128 -h 128 -o logo_128.png logo.svg + +convert logo_128.png logo_64.png logo_48.png logo_32.png logo_24.png logo_16.png Launcher.ico + +inkscape -w 256 -h 256 -o logo_256.png logo.svg +inkscape -w 512 -h 512 -o logo_512.png logo.svg +inkscape -w 1024 -h 1024 -o logo_1024.png logo.svg + +png2icns Launcher.icns logo_1024.png logo_512.png logo_256.png logo_128.png logo_32.png logo_16.png + +rm -f logo_*.png diff --git a/program_info/launcher.rc b/program_info/launcher.rc new file mode 100644 index 00000000..f84104fb --- /dev/null +++ b/program_info/launcher.rc @@ -0,0 +1,29 @@ +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#endif +#include + +IDI_ICON1 ICON DISCARDABLE "Launcher.ico" +1 RT_MANIFEST "Launcher.manifest" + +VS_VERSION_INFO VERSIONINFO +FILEVERSION 1,0,0,0 +FILEOS VOS_NT_WINDOWS32 +FILETYPE VFT_APP +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "000004b0" + BEGIN + VALUE "CompanyName", "MultiMC Contributors" + VALUE "FileDescription", "A Minecraft Launcher" + VALUE "FileVersion", "1.0.0.0" + VALUE "ProductName", "Launcher" + VALUE "ProductVersion", "5" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0000, 0x04b0 // Unicode + END +END diff --git a/program_info/logo.qrc b/program_info/logo.qrc new file mode 100644 index 00000000..f1da6fe6 --- /dev/null +++ b/program_info/logo.qrc @@ -0,0 +1,8 @@ + + + + logo.svg + + + + diff --git a/program_info/logo.svg b/program_info/logo.svg new file mode 100644 index 00000000..a1c8e439 --- /dev/null +++ b/program_info/logo.svg @@ -0,0 +1,271 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + -- cgit