-
Notifications
You must be signed in to change notification settings - Fork 24
Patch.generateProjectPatches
#generateProjectPatches
public IEnumerator generateProjectPatches(string currentFolder, string outdatedFolder, string saveLocation)
##Parameters
Type | Name | Description |
---|---|---|
string | currentFolder | folder containing new versions of files |
string | outdatedFolder | folder containing old versions of files |
string | saveLocation | output directory for produced .delta files |
##Description
This will scan the contents of a folder and compare it with another outdated copy of that folder and generate all the delta (patch) files needed to upgrade the old folder to the new folder. You must specify a location to save the output of the delta files.
##Example
using GameDevRepo;
void Start() {
PatchSystem patch = new PatchSystem();
StartCoroutine(patch.generateProjectPatches("C:\\myNewFiles","C:\\myOldFiles","C:\\ProducedDeltas"));
}
The following is a list of github repositories that made all of this possible:
delta patches: https://github.com/OctopusDeploy/Octodiff
.net 4 implemented in Monodevelop: https://github.com/mono/mono
Tuples In Unity: https://gist.github.com/michaelbartnett/5652076
Octodiff: https://github.com/OctopusDeploy/Octodiff
Input Manager: https://github.com/daemon3000/InputManager