Packaging
DiscordPulse has two separate packaging workflows:
- Package Project creates a playable game and stages runtime dependencies.
- BuildPlugin creates a distributable plugin package.
Test both before shipping a game or distributing the plugin.
Package A Win64 Game
DiscordSocialSDK.Build.cs stages the Discord runtime through Unreal Build Tool.
For a packaged Win64 game, confirm this file is beside the game executable:
discord_partner_sdk.dllOptional Krisp files are staged when present:
discord_krisp.dll
krisp-bvc-o-pro-v3.kef
krisp-nc-o-lite-v1.kef
krisp-nc-o-med-v7.kef
krisp-nc-o-nb-v2.kef
krisp-vad-o-v2.kefRich Presence does not require the optional Krisp files.
Build A Distributable Plugin
Win64 example:
Engine\Build\BatchFiles\RunUAT.bat BuildPlugin ^
-Plugin="C:\Source\DiscordPulse\DiscordPulse.uplugin" ^
-Package="C:\PluginPackages\DiscordPulse" ^
-TargetPlatforms=Win64Critical Package Output Rule
The -Package directory must be outside the DiscordPulse source directory.
Unsafe:
C:\Source\DiscordPulse\BuildSafe:
C:\PluginPackages\DiscordPulseBuildPlugin copies the plugin into a temporary host project. If the output directory is nested inside the source plugin, Unreal can recursively copy the package and later remove source-tree metadata during cleanup.
Expected Win64 Source Files
Source/ThirdParty/DiscordSocialSDK/
include/
cdiscord.h
discordpp.h
lib/
release/
discord_partner_sdk.lib
bin/
release/
discord_partner_sdk.dllOnly Unreal's full Debug target uses:
lib/debug/discord_partner_sdk.lib
bin/debug/discord_partner_sdk.dllDebugGame, Development, Test, and Shipping use release.
Other Platforms
The external module contains paths for:
macOS: Source/ThirdParty/DiscordSocialSDK/lib/release/libdiscord_partner_sdk.dylib
Linux: Source/ThirdParty/DiscordSocialSDK/lib/release/libdiscord_partner_sdk.soThese targets are not verified by the bundled Win64 setup. Supply compatible Discord SDK binaries and test editor, development, and shipping configurations.
BuildPlugin Verification
After BuildPlugin:
- Confirm the command ends successfully.
- Confirm the package contains
DiscordPulse.uplugin,Binaries,Resources, andSource. - Install the package into a clean UE 5.7 project.
- Compile or open the clean project.
- Run the Quick Start.
Packaged Game Verification
- Package a Win64 Development build.
- Confirm
discord_partner_sdk.dllis beside the executable. - Run with Discord desktop open.
- Confirm
On Discord Activity Updatedfires and activity appears. - Run with Discord closed and confirm the game does not crash.
- Repeat with a Shipping build.
See Verification for the release checklist.