Change the name of your target.cs file, or create a new one, an empty child of the other one.
For example if you have SpecifiedGameName.Target.cs, create a new one called MyNewName.Target.cs with this content:
using UnrealBuildTool;
using System.Collections.Generic;
public class MyNewNameTarget : SpecifiedGameNameTarget
{
public MyNewNameTarget (TargetInfo Target) : base(Target)
{
}
}
then change it also in your project settings, or the BuildTarget
value in DefaultGame.ini
Now when you package your game you have to use the argument -target=MyNewName
But if you choose to rename SpecifiedGameName.Target.cs to MyNewName.Target.cs instead, the argument -target might not be needed.