SwitchCaseGroup / switchcase-deltapatcher

Delta Patcher used by the Patch Tools
MIT License
1 stars 1 forks source link

Auto-healing by downloading files #4

Closed caustik closed 3 years ago

caustik commented 3 years ago

Auto-healing by downloading files.

Patches may include an optional "--http_base" command which is used to construct HTTP urls to download files which fail to patch correctly. If this parameter is not specified, there will be no fallback to HTTP. Additionally, the "--http_tool" parameter can be used to specify an external command to handle file downloads. This tool will be provided the environment variables $HTTP_URL, $HTTP_FILE, $HTTP_USER, $HTTP_PASS. The built-in HTTP downloader also supports the parameters "--http_user" and "--http_pass" for basic authentication. The built-in HTTP downloader will resume failed downloads if "apply" is called again.

Each of the "--http_*" parameters are written to the manifest file if they are provided to the "generate" command. Otherwise, they can be applied to the "apply" command to override any values which exist in the manifest file.