UltimMC: Change notsecrets to secrets

This commit is contained in:
Neptune
2024-03-06 07:52:03 -05:00
parent f9fb2443ab
commit c57d58f6f8
13 changed files with 21 additions and 47 deletions

View File

@@ -44,12 +44,12 @@ jobs:
-DLauncher_LAYOUT=lin-nodeps \
-DLauncher_BUILD_PLATFORM=lin64 \
-DLauncher_BUG_TRACKER_URL=https://github.com/UltimMC/Launcher/issues \
-DLauncher_EMBED_SECRETS=On \
$GITHUB_WORKSPACE
- name: Compile
run: |
cd build
make tcversion
make -j$(nproc)
- name: Test
@@ -167,6 +167,7 @@ jobs:
-DLauncher_LAYOUT=win-bundle ^
-DLauncher_BUILD_PLATFORM=win32 ^
-DLauncher_BUG_TRACKER_URL=https://github.com/UltimMC/Launcher/issues ^
-DLauncher_EMBED_SECRETS=On ^
-G "MinGW Makefiles" ^
..
@@ -180,7 +181,6 @@ jobs:
set PATH=%PATHCM%;%PATH%
set PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;%PATH%
cd build
mingw32-make tcversion
mingw32-make -j%NUMBER_OF_PROCESSORS%
- name: Test
@@ -245,26 +245,26 @@ jobs:
mkdir build
cd build
cmake \
-DCMAKE_C_COMPILER=/usr/bin/clang \
-DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
-DCMAKE_BUILD_TYPE=Release \
-DLauncher_NOTIFICATION_URL:STRING=https://files.multimc.org/notifications.json \
-DCMAKE_INSTALL_PREFIX:PATH="/Users/runner/work/UltimMC/build/dist" \
-DCMAKE_PREFIX_PATH="$(brew --prefix qt@5);$(brew --prefix qt@5)/lib/cmake/Qt5Core;$(brew --prefix qt@5)/lib/cmake/Qt5Widgets;$(brew --prefix qt@5)/lib/cmake/Qt5Concurrent;$(brew --prefix qt@5)/lib/cmake/Qt5Network;$(brew --prefix qt@5)/lib/cmake/Qt5Test;$(brew --prefix qt@5)/lib/cmake/Qt5Xml" \
-DQt5_DIR="$(brew --prefix qt@5)" \
-DLauncher_UPDATER_BASE=https://files.multimc.org/update/ \
-DLauncher_PASTE_EE_API_KEY:STRING=utLvciUouSURFzfjPxLBf5W4ISsUX4pwBDF7N1AfZ \
-DLauncher_ANALYTICS_ID:STRING=UA-87731965-2 \
-DLauncher_LAYOUT=mac-bundle \
-DLauncher_BUILD_PLATFORM=osx64-5.15.2 \
-DLauncher_BUG_TRACKER_URL=https://github.com/UltimMC/Launcher/issues \
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 \
$GITHUB_WORKSPACE
-DCMAKE_C_COMPILER=/usr/bin/clang \
-DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
-DCMAKE_BUILD_TYPE=Release \
-DLauncher_NOTIFICATION_URL:STRING=https://files.multimc.org/notifications.json \
-DCMAKE_INSTALL_PREFIX:PATH="/Users/runner/work/UltimMC/build/dist" \
-DCMAKE_PREFIX_PATH="$(brew --prefix qt@5);$(brew --prefix qt@5)/lib/cmake/Qt5Core;$(brew --prefix qt@5)/lib/cmake/Qt5Widgets;$(brew --prefix qt@5)/lib/cmake/Qt5Concurrent;$(brew --prefix qt@5)/lib/cmake/Qt5Network;$(brew --prefix qt@5)/lib/cmake/Qt5Test;$(brew --prefix qt@5)/lib/cmake/Qt5Xml" \
-DQt5_DIR="$(brew --prefix qt@5)" \
-DLauncher_UPDATER_BASE=https://files.multimc.org/update/ \
-DLauncher_PASTE_EE_API_KEY:STRING=utLvciUouSURFzfjPxLBf5W4ISsUX4pwBDF7N1AfZ \
-DLauncher_ANALYTICS_ID:STRING=UA-87731965-2 \
-DLauncher_LAYOUT=mac-bundle \
-DLauncher_BUILD_PLATFORM=osx64-5.15.2 \
-DLauncher_BUG_TRACKER_URL=https://github.com/UltimMC/Launcher/issues \
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 \
-DLauncher_EMBED_SECRETS=On \
$GITHUB_WORKSPACE
- name: Compile
run: |
cd build
make tcversion
make -j$(sysctl -n hw.logicalcpu)
- name: Test

1
.gitignore vendored
View File

@@ -36,5 +36,4 @@ tags
.DS_Store
branding/
secrets/
run/

View File

@@ -1,25 +0,0 @@
# DevLauncher (Not) Secrets
This is a dummy implementation of MultiMC's _Secrets_ library, used to store private information needed for:
- Application name and logo (and branding in general)
- Various URLs and API endpoints
- Your Microsoft Identity Platform client ID. **This is required to use Microsoft accounts to play!**
- If omitted, adding Microsoft accounts will be completely disabled.
## MultiMC development
In its current state, the `notsecrets` library is suitable for MultiMC code contributions (the code builds as `DevLauncher`).
All you have to do is add the Microsoft client ID. See `Secrets.cpp` for details.
## Forking
Forks of this project that intend to distribute binaries to users should use their own implementation of this library that does not impersonate MultiMC in any way (see the Apache 2.0 license, common sense and trademark law).
A fork is a serious business, especially if you intend to distribute binaries to users. This is because you need to agree to the Microsoft identity platform Terms of Use:
https://docs.microsoft.com/en-us/legal/microsoft-identity-platform/terms-of-use
If you truly want to accept such an agreement, a starting point is to copy `notsecrets` to `secrets`, enable the `Launcher_EMBED_SECRETS` CMake option and customize the files.
We do not want confused users asking for help with your fork in MultiMC Discord or similar locations.

View File

@@ -13,6 +13,6 @@ set(Launcher_UserAgent "MultiMC/5.0" PARENT_SCOPE)
set(Launcher_ConfigFile "ultimmc.cfg" PARENT_SCOPE)
set(Launcher_Git "https://github.com/UltimMC/Launcher" PARENT_SCOPE)
set(Launcher_Branding_ICNS "notsecrets/Launcher.icns" PARENT_SCOPE)
set(Launcher_Branding_WindowsRC "notsecrets/launcher.rc" PARENT_SCOPE)
set(Launcher_Branding_LogoQRC "notsecrets/logo.qrc" PARENT_SCOPE)
set(Launcher_Branding_ICNS "secrets/Launcher.icns" PARENT_SCOPE)
set(Launcher_Branding_WindowsRC "secrets/launcher.rc" PARENT_SCOPE)
set(Launcher_Branding_LogoQRC "secrets/logo.qrc" PARENT_SCOPE)

View File

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

View File

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 94 KiB