hfs icon indicating copy to clipboard operation
hfs copied to clipboard

Add hfs to Homebrew please

Open yurhett opened this issue 2 years ago • 6 comments

Is your feature request related to a problem? Please describe. Thanks for developing hfs! It's inconvenient for users to download from GitHub every time, so please join Homebrew so more people can benefit!

Describe the solution you'd like TLDR; https://docs.brew.sh/Formula-Cookbook Long story short. If you wish to add new packages to Homebrew, you can create a custom Homebrew formula. Then you can add your formula to the official Homebrew repository by submitting a pull request. This way, other users can also install the packages you added by running the brew install hfs command.

Describe alternatives you've considered Not yet

Additional context I am willing to help if needed. But I have not contributed to Homebrew.

yurhett avatar May 21 '23 15:05 yurhett

hi, I use homebrew myself. I just introduced an update button in 0.45, today, that it 1 click away after 1 click to check for updates. That should be quite convenient. This applies only to binaries. I'm currently preferring/suggesting the "node" distribution, that you can read here. This distribution is updated at every restart (caused by the optional @latest in the string).

So, I'm not sure about the brew option, I don't know how much it would take for me to create it and how much to keep it updated. I have a lot of work to do on other features. Opinions?

rejetto avatar May 21 '23 16:05 rejetto

Thank you for your timely response. I think the best solution for binary versions of software is to add it in a package manager for updates. I am glad to see that you have provided an optional npx update solution, but I don't think this is suitable for users who are not familiar with software development. In contrast, brew has a much wider audience.

Second, I have read the documentation for brew and you should not need to make too many changes to this repository. If you don't have time for this, I will fork your project and make the changes, after which I will make a pull request and you will just review the code. After that, we can plan to commit hfs to brew.

Thanks

yurhett avatar May 22 '23 03:05 yurhett

I meant that the "update" button was the more convenient for users. The npx option is mostly due to other technical reasons, not ease of use. I'd like to know if the "basic" hfs user uses brew. I guess it's possible, since HFS is a quite technical tool, despite my efforts to keep it simple. If you can take care of the brew stuff I'm glad to accept your help, but I can spend only little time on it at this moment, as I have other priorities for the project. I'd hate to waste your time, so try to anticipate most critical parts before spending long time on making changes. I'm just saying, I have no idea of what it takes.

rejetto avatar May 22 '23 08:05 rejetto

closing because stale

rejetto avatar Dec 08 '23 12:12 rejetto

Hello, I would also like to have hfs on Homebrew. I use it to share files between devices on LAN and I don't leave HFS running all the time. My only pain point with node is that it wouldn't work if the network was not connected to the internet, as node would try to download hfs and fail. I would like to have the binary in my system but I don't want the hassle of manually updating it and manually setting it up.

I can't promise anything, but I can look into making a formula for Homebrew, and maybe a Github Action to automatically update it. Would you (@rejetto) be ok with it?

pastacolsugo avatar Nov 15 '24 15:11 pastacolsugo

ciao Ugo, i use homebrew myself but never digged it, and since i have a lot of other work to do on hfs, i would welcome a hand. I need to keep control of the thing, tho, as people is trusting me when running the software. Do you see this as feasible?

I read something, and I see that there are 2 options: formula (sources) or cask (binary). The cask would be ok, and the self-update feature is tolerated by brew. We have 2 different binaries for arm/x64, so that's to be considered. It would be cooler if it's a single cask, autodetecting etc. A formula would be ok too, and then you rely on brew's update system. Node would be a requirement, then, and cpu architecture comes again as a factor.

I'm not getting your pain point with node, as you are expected to have internet when fetching the software, be it with node or brew, but later you don't.

rejetto avatar Nov 15 '24 16:11 rejetto