Packaging

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.dll

Optional 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.kef

Rich 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=Win64

Critical Package Output Rule

The -Package directory must be outside the DiscordPulse source directory.

Unsafe:

C:\Source\DiscordPulse\Build

Safe:

C:\PluginPackages\DiscordPulse

BuildPlugin 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.dll

Only Unreal's full Debug target uses:

lib/debug/discord_partner_sdk.lib
bin/debug/discord_partner_sdk.dll

DebugGame, 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.so

These 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:

  1. Confirm the command ends successfully.
  2. Confirm the package contains DiscordPulse.uplugin, Binaries, Resources, and Source.
  3. Install the package into a clean UE 5.7 project.
  4. Compile or open the clean project.
  5. Run the Quick Start.

Packaged Game Verification

  1. Package a Win64 Development build.
  2. Confirm discord_partner_sdk.dll is beside the executable.
  3. Run with Discord desktop open.
  4. Confirm On Discord Activity Updated fires and activity appears.
  5. Run with Discord closed and confirm the game does not crash.
  6. Repeat with a Shipping build.

See Verification for the release checklist.