fix(plugins): add ifdef around accounts API and ci check (#6675)

This commit is contained in:
nerix
2025-12-23 23:57:52 +01:00
committed by GitHub
parent e00b404bd4
commit ab9c3fccb8
3 changed files with 23 additions and 8 deletions
+11
View File
@@ -39,6 +39,7 @@ jobs:
skip-artifact: false
skip-crashpad: false
build-deb: true
plugins: true
- os: ubuntu-24.04
container: ghcr.io/chatterino/chatterino2-build-ubuntu-24.04:latest
qt-version: 6.7.2
@@ -46,6 +47,15 @@ jobs:
skip-artifact: false
skip-crashpad: false
build-deb: true
plugins: true
- os: ubuntu-24.04
container: ghcr.io/chatterino/chatterino2-build-ubuntu-24.04:latest
qt-version: 6.7.2
force-lto: false
skip-artifact: false
skip-crashpad: false
build-deb: false
plugins: false
env:
C2_ENABLE_LTO: ${{ matrix.force-lto }}
C2_ENABLE_CRASHPAD: ${{ matrix.skip-crashpad == false }}
@@ -84,6 +94,7 @@ jobs:
-DCMAKE_PREFIX_PATH="$Qt6_DIR/lib/cmake" \
-DCHATTERINO_STATIC_QT_BUILD=On \
-DFORCE_JSON_GENERATION=${{matrix.os == 'ubuntu-24.04' && 'On' || 'Off'}} \
-DCHATTERINO_PLUGINS=${{ matrix.plugins && 'On' || 'Off' }} \
..
make -j"$(nproc)"
+1 -1
View File
@@ -13,7 +13,7 @@
- Minor: Consolidate font picking into one dialog. (#6531)
- Minor: Added a menu action to sort tabs alphabetically. (#6551)
- Minor: Fixed "edit hotkey" dialog opening like a normal window. (#6540)
- Minor: Added an API to get the current Twitch account in plugins. (#6554)
- Minor: Added an API to get the current Twitch account in plugins. (#6554, #6675)
- Minor: Added options to close multiple visible tabs. (#6515, #6619)
- Minor: Added a setting to show the stream title in live messages. (#6572)
- Minor: Add categories to the emoji viewer. (#6598)
+11 -7
View File
@@ -1,14 +1,16 @@
#include "controllers/plugins/api/Accounts.hpp"
#include "Application.hpp"
#include "controllers/accounts/AccountController.hpp"
#include "controllers/plugins/SolTypes.hpp" // IWYU pragma: keep
#include "providers/twitch/TwitchAccount.hpp"
#include "util/WeakPtrHelpers.hpp"
#ifdef CHATTERINO_HAVE_PLUGINS
#include <sol/sol.hpp>
# include "Application.hpp"
# include "controllers/accounts/AccountController.hpp"
# include "controllers/plugins/SolTypes.hpp" // IWYU pragma: keep
# include "providers/twitch/TwitchAccount.hpp"
# include "util/WeakPtrHelpers.hpp"
#include <optional>
# include <sol/sol.hpp>
# include <optional>
namespace {
@@ -95,3 +97,5 @@ void createAccounts(sol::table &c2)
}
} // namespace chatterino::lua::api
#endif