Distribute on Homebrew? #142
Comments
IMO, good idea. |
If nobody else has started with this I can push a formula in a few mins. |
@JFKingsley if you can make one in a Gist but not push it yet, that'd be awesome |
@supermarin Forked homebrew so I could do some isolated testing, got the install working down pat, however since it doesn't seem you can't run stuff on uninstall i'm having a hard time rm -rf'ing the plugin/extras off the system. |
I guess you can clone ATZ in Cellar or wherever Brew clones stuff, and symlink in ~/Library.... instead of cloning there. When uninstalling, you'd |
Yeah, that would probably work, might need to play around, but the premise is sound. Let me have a crack at that now, see if it pulls off the desired effect. |
Okay @supermarin, got something. Symlinked, works on install/uninstall, all pretty :3 |
👍 |
Updated the gist to now use File.join everywhere. Anyone want to test this on their machine to confirm it works? |
Ping @Ashton-W @supermarin |
Worked for me and passed |
@JFKingsley thanks for your work on this, you're awesome! The only concern I have here is - this is a binary distribution. Either that or trying to make a formula that fetches & compiles Alcatraz w/ |
I forked it to use ruby methods instead of system like in homebrew/wiki/Formula-Cookbook https://gist.github.com/Ashton-W/aec58c6fb08f933bb01c could be further rubyfied |
Nice work @Ashton-W! @supermarin: Well, I could do a version that builds alcatraz if you can specify the build process? |
|
Do we have source releases? |
FileUtils.rm_rf '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin' or FileUtils.rm_rf File.join(Dir.home, 'Library/Application Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin') |
@Ashton-W each release is tagged. take a look at the Releases tab. EDIT: there's also |
I meant as a link to a tarball, and you are right there is one. |
Okay then, so if @Ashton-W is okay i'll see what I can do to work on a self-building formula. |
homebrew/wiki/Formula-Cookbook#wiki-build-toolchain-selection has a good example of xcode building with checks for xcode being installed @JFKingsley I'm always OK, go ahead |
So @supermarin, "make build" throws this shiz. https://gist.github.com/JFKingsley/9521044 |
I get that locally too, removing I've been playing with the Makefile to make |
That's perfect, only thing is i'm pulling the 1.0.4 tar gz so that makefile isn't in there. |
In fact, can we allow people to specify an optional path to copy the plugin to instead of the Xcode plugin folder? |
It's up to @supermarin how we deal with the xcpretty dependency. An environment variable could be used to override the install path, but I wonder if we are complicating things to fit in with Homebrew. |
Mhm. To be honest I think I'll probably just ditch using the makefile and do all the commands inside the formula. I'll knock up a new version once my macbook is back in working order, been playing up with memory consumption recently so it's in for a check up at the Apple store for a day. |
@JFKingsley yeah that makes sense. Doing just |
Apparently not. Throws a bunch of errors about not being able to sign it |
oh that makes sense, maybe you need to be a member of OSX developer program |
Yes, but not every person who installs Xcode and tries to use this will be. Let me see if I can do a build without signing it. |
@JFKingsley you're totally right sir, and you shouldn't be spending your time on this from this point. Your formula with prebuilt binary looks good and i think it's a better thing in the long run (apple likes to change build stuff). |
Well @supermarin, I did some fancies and I figured out a way to compile a build with no signing, works fine. Ima spend my time on this until it's finalised and working properly, no stopping me there :P |
Where did we end up on this? |
I'm not entirely sure, we had one working binary script and I had a working script that installed from source, but I'm not sure if we ever got anywhere |
Could you put up a tap, then people can try it and we can move this along. |
Wouldn't Homebrew Cask (http://caskroom.io/) installation be the easiest? |
Possibly, although taps are pretty easy as well. Do you want me to tap the binary download script or the (unfinished) source compile script? |
@JFKingsley I really appreciate all your work done here - but wouldn't like you to waste more time if we don't end up using it. Current install script isn't that bad curl -fsSL https://raw.github.com/supermarin/Alcatraz/master/Scripts/install.sh | sh and updates are automatic. |
Yeah, that would make more sense @supermarin, shall we put this on ice until then? |
binary is done, no? can't this get finished/submitted to the home-brew team? would be a vast improvement to the ecosystem. |
Somehow this got lost in the mix, but Alcatraz has been available via |
No description provided.
The text was updated successfully, but these errors were encountered: