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] How to set the update order of software? #5500

Closed
berial opened this issue May 5, 2023 · 3 comments
Closed

[Feature] How to set the update order of software? #5500

berial opened this issue May 5, 2023 · 3 comments

Comments

@berial
Copy link

berial commented May 5, 2023

Feature Request

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

clash-chinese-patch depends clash-for-windows. But when I use 'scoop update *' for updates, clash-chinese-patch always starts updating before clash-for-windows and prompts for failure.

Describe the solution you'd like

Can I customize an update order?

Describe alternatives you've considered

$ scoop update clash-for-windows # Step 1
$ scoop update clash-chinese-patch # Step 2
@HUMORCE
Copy link
Member

HUMORCE commented May 5, 2023

Manifest
Copy clash-for-windows to your own bucket, use this function for copying files everytime of install|update.

Alias

scoop alias add add '$args | foreach { scoop install $_ }'
scoop alias add up '$args | foreach { scoop update $_ }'

@StarsbySea
Copy link

Another way to do it is that you hold the two apps mentioned earlier before updating all of them, then update all of them first, then unhold them afterwards, and then update them in the specified order. Sort of like this.

scoop hold clash-for-windows clash-chinese-patch
scoop update --all
scoop unhold clash-for-windows clash-chinese-patch
scoop update clash-for-windows
scoop update clash-chinese-patch

You can write a ps1 file to quickly perform the above actions.
If you have any more questions, feel free to leave your thoughts and if this solves your problem, please close the issue.

@berial
Copy link
Author

berial commented May 9, 2023

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants