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
Bleeding edge FreeCAD binary #3654
Comments
So peterl94 is not officially affiliated with FreeCAD, but compiles binaries that are not officially provided as such, only as source code? If that’s the case, it being unofficial and from a source we don’t know and trust, it shouldn’t be added here. However, it does seem like a good candidate for caskroom/homebrew-unofficial. What do you think, @alebcay? |
The link provided in the forum post goes to http://sourceforge.net/projects/free-cad/files/FreeCAD%20MacOSX/, which is the official download page for FreeCAD as listed on their homepage, so I don't think the link counts as unofficial (the official web page links to the same download link given in the forum post above). The issue remains that v0.14 is listed as unstable - the latest stable version is v0.13 (according to the website that is, their Sourceforge project says it's v0.12 though). If you decide to bring in the "bleeding edge" version (which is still official, but unstable), it should probably go in caskroom/homebrew-versions. |
Posted on the FreeCAD forum here: http://forum.freecadweb.org/viewtopic.php?f=4&t=5452&p=51631#p51631 |
Hi there, |
Also, another FreeCAD user has recently created a homebrew formula that builds FreeCAD from the master branch. https://github.com/sanelson/homebrew-freecad |
@peterl94 just to make sure that we're on the same page, this is Homebrew Cask (http://Caskroom.io) which uses the homebrew package manager to deliver precompiled binaries. It would be awesome to be able to have Homebrew Cask deliver your volunteer dev builds. Thanks for introducing yourself. Perhaps now we can get this to happen. |
The only problem is that someone would have to manually update the url every time I uploaded a new build, right? Or does Cask provide some way to automatically fetch the newest file? I guess manually updating the url wouldn't be much of a problem if I don't do builds that frequently, but in the future I might automate the process and do weekly or even daily builds. |
@peterl94 Perhaps we can figure out, if it's cool with the Caskroom devs, if there is a default HEAD-like URL address that will point to the most recent build you've created? |
Automating the git fork and pull actions could also be scripted, I imagine. And could be part of the build process once the build has been uploaded to sourceforge? |
Yeah, that could work. |
I guess the normal "latest" link on sourceforge doesn't get updated automatically. |
@peterl94 |
I'm thinking now on my past experiences with Homebrew Cask that there is a necessity to provide a direct link instead of using a redirect link in the formula. So lets make a script that automates this and will be part of you build workflow... |
Yes, found this in the Caskroom Contributing.md documentation: https://github.com/phinze/homebrew-cask/blob/master/CONTRIBUTING.md#sourceforge-urls |
You have to update the sourceforge link manually, and I'm not sure I have the necessary admin rights to do that. I changed the naming scheme on purpose to emphasize the fact that they are development builds and not release builds. |
So yeah, a script to update the Cask formula would probably be the easiest. |
Cool. I think the URL would be something like this: Just for cleanliness/clarity it may be a good idea to include OSX-dev-$snapshot_revision_number in the filenames for the builds ? |
Yeah, that looks like a good idea. |
Hey @alebcay, @vitorgalvao |
I know how I would right the script -- all but the pull request part. Can Cask use other repos? |
I have yet to see this feature in a script, and it may be awhile until I get it worked into Cask Developer Tools. In the meanwhile, if you intend to use your own, you'll probably need the Pull Requests GitHub API to do it. |
Yes, it should work just like normal Homebrew:
If the second step doesn't work, you might need:
|
I’ll have to read the rest of the issue up, but I have a script that might be able to help with the process a bit (not everything, but it may serve as a starting point). You can install it via brew tap vitorgalvao/homebrew-tinyscripts
brew install cask-reapair or simply by getting the raw script. To use it, simply go to the It will pull all updates from this repo, create and change to a new branch, show you what the cask currently contains, and ask you to type a version (whatever version you updated it to), at which point you should have the direct download url in your clipboard. It’ll use that url to download the file and calculate its checksum, make all relevant changes, show you a diff, audit it, and ask you if everything is correct (you may edit it manually, if needed). If you tell it everything is ok, it’ll commit, push that branch (you’ll then have to come to github to make the pull request), go back to master, and delete the branch. |
Cool, I'll have to try that out. But I'm thinking that having the development builds cask formula in my own repo might be a more sensible solution. Then when 0.14 is released, the one in the official repo can be updated. |
@alebcay thanks for you replies |
It would save having to do a pull request every time I updated the formula, which would be very nice if I end up doing daily builds. |
@alebcay & @vitorgalvao |
This repository is intended for stable releases, not bleeding edges. Bleeding edge and development builds should go in |
On second thought, I think I might do that. |
@alebcay So if people search for FreeCAD using homebrew... the bleeding edge dev build made by @peterl94 won't show up in the search result, right? |
@luzpaz Yes, if you put the Cask in your own repo, you'll have to point users towards it yourself, as the search won't find it. |
Seems like we can close this, now. |
Current FreeCAD brew cask is old v .12
This gentleman is the only freeCAD mac dev to step up and compile the latest dev binaries:
http://forum.freecadweb.org/viewtopic.php?f=4&t=5452&start=40
Can we have a freecad-dev cask ?
The text was updated successfully, but these errors were encountered: