jaemk / self_update

Self updates for rust executables
MIT License
796 stars 69 forks source link

Feature request: Add support for additional support files #135

Open VorpalBlade opened 3 months ago

VorpalBlade commented 3 months ago

It would be useful to have support for additional support files.

For example:

Since this is a very general problem (and it wouldn't be clear where to put the specific files), perhaps a generic callback that the application author could implement would be a way to do this. For example:

self_update::backends::github::Update::configure()
    .repo_owner("...")
    .repo_name("...")
    // ...
    .handle_additional_files(|archive_iterator| { /* ...*/ }
    .update();