From 6af37f14b984f0246cec5687e835ce39a9412688 Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Mon, 31 Aug 2026 22:17:13 +0200 Subject: [PATCH] Build Discord Presence components on test branch --- .github/workflows/build.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5a5e7fa..b06c0b8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,7 @@ on: branches: - 'main' - 'feature/client-tweaks' + - 'test/discord-presence' tags: - 'v*' pull_request: @@ -41,6 +42,22 @@ jobs: pyinstaller --version python -m pip show pyinstaller pyinstaller-hooks-contrib + - name: Configure x86 MSVC + uses: ilammy/msvc-dev-cmd@v1 + with: + arch: x86 + + - name: Build Discord Presence native components + shell: pwsh + run: | + New-Item -ItemType Directory -Force -Path "Payload" | Out-Null + cl /nologo /O2 /MT /W3 /LD "native\DiscordPresence\DiscordPresence.c" /Fe:"Payload\DiscordPresence.dll" /link /INCREMENTAL:NO + if ($LASTEXITCODE -ne 0) { throw "DiscordPresence.dll build failed" } + cl /nologo /O2 /MT /W3 "native\DiscordPresence\DiscordPresenceLauncher.c" /Fe:"Payload\DiscordPresence.exe" /link /SUBSYSTEM:WINDOWS /INCREMENTAL:NO + if ($LASTEXITCODE -ne 0) { throw "DiscordPresence.exe build failed" } + if (-not (Test-Path "Payload\DiscordPresence.dll")) { throw "DiscordPresence.dll missing" } + if (-not (Test-Path "Payload\DiscordPresence.exe")) { throw "DiscordPresence.exe missing" } + - name: Syntax check run: python -m py_compile setup_tool.py setup_tool_dynamic.py remote_packages.py tests/test_safety.py