-
Notifications
You must be signed in to change notification settings - Fork 1
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
Need a better way to update (preserving the config) #1
Comments
@deanishe mentioned that the config can be stored |
There are de facto data and cache directories for each workflow. Alfred passes their paths in the |
I just realized that neither of these folders are going to be synced between computers. |
If I wanted to sync data between machines, I'd probably use a sibling directory to the workflow's own, e.g. |
The smoothest solution for a situation like this (a workflow rewriting its own That would pick up on most things that can happen, like a user editing the configuration via
|
Moving the configuration file out of the workflow has one other downside, though – users won't be able to share the workflow with the configuration by just exporting it. |
Presumably, you'd include a sample configuration with the workflow that gets copied to the proper location on install if no configuration file exists in any case. For your team, replace that with the one from your settings. My Python workflow library has supported updates via GitHub releases for a good while. It's a super-handy feature, but it doesn't do anything complicated. It just downloads the |
No description provided.
The text was updated successfully, but these errors were encountered: