How To Create A Patch
The resource groups generated in the previous section can now be use to generate a patch.
Note: This document refers to filesystem types, see Filesystem Design - Local/Remote for more details.
.\resources.exe create-patch PreviousResourceGroup.yaml NextResourceGroup.yaml --resource-source-base-path-previous C:\PreviousBuild --resource-source-base-path-next C:\NextBuild
Arguments:
Positional argument 1 - Path to previous resource group
Positional argument 2 - Path to next resource group
–resource-source-base-path-previous - base path to source resources for previous
–resource-source-base-path-next - base path to source resources for next
Note
See CLI help for more information regarding options.
This will create a patch in the folder PatchOut which contains:
A PatchResourceGroup.yaml file - This holds the patch information including a list of binary patches required for the full patch.
The
Patchesdirectory which contains the binary patch data, by default this is saved in aLOCAL_CDNfile structure which are in a CDN friendly structure but uncompressed. See Filesystem Design - Local/Remote For more information regarding filesystem design.
Note
The patch data generated by default is not compressed so is not reflective of the finished patch size.
This will create
1. A PatchResourceGroup.yaml at the default location PatchOut/PatchResourceGroup.yaml.
2. Patch binaries at default location PatchOut/Patches using the default filesystem type LOCAL_CDN