jeffsui Posted August 23, 2016 Share Posted August 23, 2016 I've created a handful for workflows that we use at my office and I would love to have an easy way to batch export and update the metadata so that i can share them with people. Right now when i make a change export the workflow to disk and email it to people. It would be great if there was some way to automate this or script this out. so i could just run alfred -package workflow_name outputFile and then upload the workflows to an internal server or something like that. It this possible or just wishful thinking? Thanks Link to comment Share on other sites More sharing options...
deanishe Posted August 24, 2016 Share Posted August 24, 2016 Here's the build script I use. It's tailored to Python and the Alfred-Workflow library, so you'd probably want to change it (i.e. it excludes Python-specific files from the build and reads the workflow version number from a version file, which Alfred-Workflow expects to be present). jeffsui 1 Link to comment Share on other sites More sharing options...
jeffsui Posted August 31, 2016 Author Share Posted August 31, 2016 (edited) So I ran your script and it seemed to still be picking up my .git directory which is odd. I added dirnames[:] = [d for d in dirnames if not d in ['.git','.idea']] right after this block of code # build workflow command = [u'zip'] if not verbose: command.append(u'-q') command.append(zippath) for root, dirnames, filenames in os.walk(u'.'): and it worked for me. Not sure if this is helpful feedback - but Edited August 31, 2016 by jeffsui Link to comment Share on other sites More sharing options...
deanishe Posted August 31, 2016 Share Posted August 31, 2016 Yeah. I keep my workflows code in a subdirectory of the repo. That way I can symlink it to Dropbox safely. Putting a .git directory in Dropbox can have unwanted consequences. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now