Consult the latest UE4 packaging documentation.
-
Open project in Visual Studio and build Shipping configuration
-
From menu icon bar expand Launch options and select Project Launcher
-
Config the custom launch profile:
- Project: Select your UE4
.uproject
file - Build: Leave unchanged
- Cook: First select By the book
- Cooked Platforms: select WindowsNoEditor
- Cooked Cultures: select en-US
- Cooked Maps: select Show all then Select: All
- Release/DLC/Patching Settings: Leave unchanged
- Advanced Settings:
- Enable: Compress content, Save packages without versions, and Store all content in a single file (UnrealPak)
- For "Cooker build configuration" choose Shipping
- Package:
- Choose Package & store locally
- Default output path is
<Project>/Saved/StagedBuilds
- Enable Is this build for distribution to the public
- Archive: Leave unchanged
- Deploy: Choose Do not deploy
- Project: Select your UE4
-
Click Back button to return to Project Launcher and click the launch profile icon of the profile:
- The cooking/packaging process will take around 5 minutes and the build will be placed in package output path (default is
<Project>/Saved/StagedBuilds/<Platform>/
)
- The cooking/packaging process will take around 5 minutes and the build will be placed in package output path (default is
-
Copy Ruyi SDK runtime libraries (i.e.
lib/zmq/libzmq.dll
andlib/boost/*.dll
) toBinaries/Win64/
folder (e.g.<Project>/Saved/StagedBuilds/WindowsNoEditor/PlatformerGame/Binaries/Win64/
) -
Ensure layer0 is running and double-click the output
.exe
(e.g.PlatformerGame.exe
) to test the game build -
Create
res/
folder andRuyiManifest.json
file in platform output folder (i.e.Saved/StagedBuilds/WindowsNoEditor/
)-
See UE4 sample for an example of these files
-
Final directory structure should be similar to:
| | PlatformerGame.exe | RuyiManifest.json | +---Engine | +---PlatformerGame | +---Binaries | | \---Win64 | | boost_chrono-vc141-mt-1_64.dll | | ... | | libzmq.dll | | PlatformerGame.exe | | PlatformerGame.pdb | \---... | \---res | i18n.json | +---hd | \---ld
-
-
Use devtool AppRunner to install and run the application