build-workflow.sh: do not include variables that should not be exported #107
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I use a custom zsh function to package, commit, push to the repo, open Packal, copy message to clipboard ready to paste to the forum, etc, when I make a workflow update.
Just now it hit me there’s a
Don't Export
option for Workflow Environment Variables. That means Alfred knows not to export them, but zipping won’t take that into account. Made a quick test and confirmed that is indeed the case. Then I remembered seeing a script of yours (this one) that packaged workflows (though my memory failed me on the language, as I though the script itself was python). Came looking to see if you had solved that or it had escaped us both.A few modifications to my my function later, arrived at something similar to this (changed here to better fit with the style of your script).
Quite simply, it:
info.plist
hasvariablesdontexport
.info.plist
and don’t want to do them on our current one).variablesdontexport
and set them to empty values (we don’t want to delete them, else the reference would be lost as well).I’ll likely make a post on the forum briefly on this, but wanted to go ahead and submit this to you as well.