emanzione / PATCH

The PATCH repository for issues tracking, wiki and shared material.
https://assetstore.unity.com/packages/tools/utilities/p-a-t-c-h-ultimate-patching-system-41417
MIT License
47 stars 7 forks source link

Add the build-verification functionality #67

Closed emanzione closed 9 months ago

emanzione commented 10 months ago

Context

A common issue when using PATCH is that the target web server, sometimes, may have troubles in serving some files/mime types.

However, this issue only arises at runtime, when the Updater is actually trying to go through the update process.

Proposal

To avoid this issue, a new set of commands may be introduced in the Admin CLI.

MHLab.Patch.Admin.CLI verify-build --target <version> --remote-url <remote_url>

MHLab.Patch.Admin.CLI verify-patch --target <from_to> --remote-url <remote_url>

These commands will go through the target's files at the remote URL and will verify if they are all reachable and have the expected size.

We cannot verify the expected hash because it would mean downloading the whole file (which could be huge).

The commands will also output information about the files that didn't pass the verification.