DevToys-app / DevToysMac

DevToys For mac
MIT License
9.2k stars 354 forks source link

Add to homebrew casks #24

Closed gbaranski closed 2 years ago

dotWee commented 2 years ago

This is a basic working cask formula that serves the current release V0.0.6:

It can be tested by installing it from my testing tap: brew install dotwee/repo/devtoysmac

cask "devtoysmac" do
  version "V0.0.6"
  sha256 "1770202ee4cb3bc45f2100992dceb308f606b130529d70d71abff1e11ad76f28"

  url "https://github.com/ObuchiYuki/DevToysMac/releases/download/0.0.6/DevToys.zip"
  name "DevToysMac"
  desc "This is the mac app version of Windows DevToys!"
  homepage "https://github.com/ObuchiYuki/DevToysMac"

  app "DevToys.app"

  zap trash: [
    "~/Library/Preferences/com.yuki.DevToys.plist",
  ]
end

Since I'm not the maintainer and do not actively follow the development, I won't create a pull request for merging into the public main repo.

Some resources for the maintainer @ObuchiYuki:

Less relevant:

ObuchiYuki commented 2 years ago

@gbaranski @dotWee Thank you for your issue! I also want to introduce homebrew cask to this project. I'll check the resources. Thank you again!

dotWee commented 2 years ago

No problems. Thanks for your work! I really enjoy your application.

Also, you may want to check out Sparkle, a well known framework for (self) updating macOS applications outside of the App Store.

mheob commented 2 years ago

Nice to read that this app will be implemented in Homebrew.

@dotWee has listed a good starting point.

cask "devtoysmac" do
  version "V0.0.6"
  sha256 "1770202ee4cb3bc45f2100992dceb308f606b130529d70d71abff1e11ad76f28"

  url "https://github.com/ObuchiYuki/DevToysMac/releases/download/0.0.6/DevToys.zip"
  name "DevToysMac"
  desc "This is the mac app version of Windows DevToys!"
  homepage "https://github.com/ObuchiYuki/DevToysMac"

  app "DevToys.app"

  zap trash: [
    "~/Library/Preferences/com.yuki.DevToys.plist",
  ]
end

One small optimization I noticed: For the URL, the version should be set variable:

url "https://github.com/ObuchiYuki/DevToysMac/releases/download/#{version}/DevToys.zip"

With this update, the cask will be very easy to update, for example with

brew bump-cask-pr --version <new_version> devtoysmac

See also CONTRIBUTING.md#updating-a-cask in the Homebrew repository.

SeanSith commented 2 years ago

https://github.com/Homebrew/homebrew-cask/pull/119273 has been submitted.

mheob commented 2 years ago

I can confirm this. You can install the tool with this command:

brew install --cask devtoys

Thanks @SeanSith

gbaranski commented 2 years ago

thanks,

closed by https://github.com/Homebrew/homebrew-cask/pull/119273

ObuchiYuki commented 2 years ago

@dotWee @gbaranski @SeanSith @mheob

Thank you so much for your support for brew! I don't have much knowledge of brew and this cooperation really helped me!