Scripting hooks #54
Replies: 4 comments 2 replies
-
Hey, I'm not sure about that as I don't want Rotz to become a full package manager. It should mainly be used in conjunction with package managers where possible (Use an actual package manager to install the packages. E.g. In the future I want to track which files are currently linked so that Rotz can remove orphaned files. Here we could also track which applications are already installed and skip installing them again (and maybe use a Right now you can already achieve pre and post install hook functionality by using multi line scripts as the install cmd.
It is also possible that it's fine if the install command is executed again. E.g. when the application is installed via For linking hooks could you give me an example where they would be needed? I get that an inbuilt solution would be nicer but this could also be achieved by using make, just or something similar. |
Beta Was this translation helpful? Give feedback.
-
I agree that this idea comes close to encroaching on package manager territory. I didn't realize that multi-line commands were allowed so that might be enough. What's the syntax? One example of a linking script hook would be to restart an app after linking. |
Beta Was this translation helpful? Give feedback.
-
@volllly How would I do something like this?
I get the following:
(maybe a typo there: Cloud/Could) |
Beta Was this translation helpful? Give feedback.
-
That was exactly it. I tried it on a brand new install so PowerShell Core hadn't been installed yet. Thank you! |
Beta Was this translation helpful? Give feedback.
-
For some applications it's not enough to link some files. Along the style of RPM spec files, it would be useful to run custom scripts pre- and post- install and link actions. Rotz could check the exit code of those scripts to abort further action.
For some apps I would use the pre-install to check if the app is already installed.
Beta Was this translation helpful? Give feedback.
All reactions