From 1f465957e69b45017689deb98699965e31f7247d Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Mon, 31 Aug 2026 22:20:37 +0200 Subject: [PATCH] Link DiscordPresence companion against User32 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b06c0b8..0f8d756 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,7 +53,7 @@ jobs: 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 + cl /nologo /O2 /MT /W3 "native\DiscordPresence\DiscordPresenceLauncher.c" user32.lib /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" }