dburr Posted February 1, 2015 Share Posted February 1, 2015 (edited) I'm writing an Alfred workflow that requires use of an external Unix binary. Currently I am installing this binary using Homebrew; however when I eventually start distributing my workflow, I would rather not have to force the user to set up Xcode command line tools, install Homebrew, etc. Ideally I'd like to distribute a pre-compiled version of the binary(s) my workflow uses, along with the workflow. Is it possible to distribute resource(s) (such as binaries, shell scripts/Applescripts, etc.) as part of the Alfred workflow bundle? And how would one call that binary (i.e. instead of hard-coding a path, like /usr/local/bin/foo)? Edited February 1, 2015 by dburr Link to comment
vitor Posted February 2, 2015 Share Posted February 2, 2015 (edited) Yes, it is possible. Simply call them with a relative path, like if you had just cded to the workflow’s directory as soon as it started. Edited August 9, 2016 by Vítor Link to comment
jeffsui Posted August 9, 2016 Share Posted August 9, 2016 You can also just copy the binary into the workflow directory. And then call with no path. Link to comment
deanishe Posted August 11, 2016 Share Posted August 11, 2016 You can also just copy the binary into the workflow directory. And then call with no path. Well, you'll need to call it with a leading ./ (e.g. ./myprog not just myprog) to tell the shell it's in the working directory, not on PATH. jeffsui 1 Link to comment
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