Skip to content

Latest commit

 

History

History
59 lines (55 loc) · 2.97 KB

ue4_package.md

File metadata and controls

59 lines (55 loc) · 2.97 KB

UE4 Packaging

Consult the latest UE4 packaging documentation.

  1. Open project in Visual Studio and build Shipping configuration

  2. From menu icon bar expand Launch options and select Project Launcher

  3. Create a new Launch Profile

  4. 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
  5. 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>/)
  6. Copy Ruyi SDK runtime libraries (i.e. lib/zmq/libzmq.dll and lib/boost/*.dll) to Binaries/Win64/ folder (e.g. <Project>/Saved/StagedBuilds/WindowsNoEditor/PlatformerGame/Binaries/Win64/)

  7. Ensure layer0 is running and double-click the output .exe (e.g. PlatformerGame.exe) to test the game build

  8. Create res/ folder and RuyiManifest.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
      
  9. Use devtool AppRunner to install and run the application