-
Notifications
You must be signed in to change notification settings - Fork 758
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
[FR] Add post_install and post_uninstall hooks to quarks #5753
Labels
comp: sclang
sclang C++ implementation (primitives, etc.). for changes to class lib use "comp: class library"
good first issue
indicates issue tickets that are suitable for a new contributor
Comments
madskjeldgaard
added
good first issue
indicates issue tickets that are suitable for a new contributor
comp: sclang
sclang C++ implementation (primitives, etc.). for changes to class lib use "comp: class library"
labels
Apr 4, 2022
As further inspiration, here are the hooks that are used in the Arch Linux package system:
|
capital-G
added a commit
to capital-G/supercollider
that referenced
this issue
May 20, 2022
telephon
pushed a commit
to telephon/supercollider
that referenced
this issue
Nov 24, 2022
telephon
pushed a commit
to telephon/supercollider
that referenced
this issue
Dec 23, 2022
telephon
pushed a commit
to telephon/supercollider
that referenced
this issue
Dec 23, 2022
I think this was added in #5907 |
Ah that's amazing @dyfer ! |
and thanks @telephon ! |
and thanks to @capital-G |
Thanks @capital-G ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
comp: sclang
sclang C++ implementation (primitives, etc.). for changes to class lib use "comp: class library"
good first issue
indicates issue tickets that are suitable for a new contributor
Some quarks produce files/folders outside of it's own folder, some quarks need the system to run a certain command after installation/uninstallation or do other things to finish the setup, and while this can be done with a method in a class of the package or documentation, it would be really great to have this automated in the quark file itself.
What I propose is that the quark dictionary contains two extra fields that each take a function that is run as hooks (inspired by how some linux package managers do this).
Those two are the most important I can come up with now, but I have an additional hook in mind that is worth mentioning, but I'm currently not sure how to solve it. It would additionally be great to have a hook that is triggering a function after the first class library compilation after the quark is installed - maybe called post_compilation. This would allow to call methods and classes in the quark after it has been installed and the classes are now compiled by the system.
The text was updated successfully, but these errors were encountered: