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 request] hooks for scripts #385

Open
andrewcrook opened this issue Sep 19, 2024 · 2 comments
Open

[Feature request] hooks for scripts #385

andrewcrook opened this issue Sep 19, 2024 · 2 comments

Comments

@andrewcrook
Copy link

Would it be possible to add a feature to run scripts before and after certain events
I think this would have to be configure in a config file using $XDG_CONFIG_HOME.
Some of the hooks could be

  • pre-upgrade
  • post-upgrade
  • pre-install
  • post-install
  • pre-uninstall
  • post-uninstall
  • pre-switch
  • post-switch

these could trigger the execution of scripts (python, ruby, pearl, apples script, swift using hash bang, apps (apps or helpers) or shortcuts .

These could provide many solutions to solve problems some examples

  • clean ups
  • back ups
  • change paths or variables
  • create/remove links
  • update/install/uninstall other dev apps
  • download code, libraries, apps and plugins
  • Use third party notifications and chat systems
  • extra logging
  • communicate with web services
  • x-callback other apps
  • Apple Shortcuts
  • ci/cd

They could optionally pass some basic arguments such as type, short name , bundle id, version, log name, path , url , etc

@andrewcrook
Copy link
Author

andrewcrook commented Sep 19, 2024

maybe this will help

XXXXXXX If you don't have the c compliator, install it.(gcc or clang)

I dont install from random links. Gives me dodgy vibes.
Not sure how this would help anyway if its not xcodes

Update yes I don't fall for that rubbish

Screenshot 2024-09-19 at 12 52 36

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

No branches or pull requests

2 participants
@andrewcrook and others