Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Allow specialized scripts to be executed during updates #156

Open
harry-xi opened this issue Aug 7, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@harry-xi
Copy link
Contributor

harry-xi commented Aug 7, 2024

Is your feature request related to a problem? Please describe.

In some updates, perhaps there is a need to move data files etc., which the current lip cannot handle.

Describe the solution you'd like

Add the following fields to tooth.json

"update":{
    "<tag of version before update>":/* scripts */
}

The version tag section follows the format of the dependencies, and the scripts follow the format of the scripts during installation and uninstallation. Use any to match any update.
When the version of a package installed before the update matches one of the version numbers, its corresponding command is executed.
The package publisher should ensure that it does not successfully match more than one version tag at the same time, but does not need to ensure that it covers every version.

Describe alternatives you've considered

No response

Additional context

No response

@harry-xi harry-xi added the enhancement New feature or request label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant