PixelPerfect icon indicating copy to clipboard operation
PixelPerfect copied to clipboard

Add to Homebrew?

Open jonathanlaniado opened this issue 1 year ago • 6 comments

I love this app, but it would be great to add it to Homebrew, a popular package manager for macOS (and Linux).

By adding your app to Homebrew, you'll make it easier for users to install and manage. If you're up for it, check out the official documentation to create a formula for your app. The formula is just a Ruby script that explains how to install and manage your app using Homebrew.

Here's a quick rundown of the steps:

  1. Fork the Homebrew-core repo
  2. Create a new formula file in the Formula directory, using the right naming conventions
  3. Write the formula script with your app's URL, version, dependencies, and installation instructions
  4. Run brew audit --new-formula [Your Formula Name] to check for any issues
  5. Submit a pull request to the Homebrew-core repo

Perks of Homebrew:

  • Easier installation for users
  • Simple version management and updates
  • More visibility and discoverability
  • Integration with the Homebrew ecosystem

I hope you will consider this!

jonathanlaniado avatar Apr 04 '23 22:04 jonathanlaniado

That's a fantastic idea, putting it on my roadmap.

cormiertyshawn895 avatar Apr 05 '23 02:04 cormiertyshawn895

I tried to write a demo, but I found that the software name changes with the system locale, so I don't know how to determine the value of the variable app 🥲

cask "pixel-perfect" do

  version "1.2"
  sha256 "163b96ba5bea26507a9625237726a20b8a4586250a6e5883700f20cadb65e386"

  url "https://github.com/cormiertyshawn895/PixelPerfect/releases/download/#{version}/PixelPerfect.#{version}.zip",
    verified:   "github.com/cormiertyshawn895/"
  name "Pixel Perfect"
  desc "Pixel Perfect lets you increase the text size of iPhone and iPad apps on Mac. Say goodbye to small and blurry text, and enjoy pixel-perfect graphics, all rendered at 100% native resolution. Compatible with macOS Sonoma, macOS Ventura, macOS Monterey, and macOS Big Sur."
  homepage "https://github.com/cormiertyshawn895/PixelPerfect"

  livecheck do
    url :url
    strategy :github_latest
  end

  auto_updates true
  app "纤毫毕现(右键打开).app"

  zap trash: [
    "~/Library/Caches/com.mac.PixelPerfect",
    "~/Library/HTTPStorages/com.mac.PixelPerfect",
    "~/Library/Preferences/com.mac.PixelPerfect.plist",
  ]
end

ps: I use Chinese Simplified. Most of the time, I come across software whose names do not change with the system language. By the way, the Chinese of the software is a good name! 🥳

Mrered avatar Jul 31 '23 03:07 Mrered

I love this app, but it would be great to add it to Homebrew, a popular package manager for macOS (and Linux).

By adding your app to Homebrew, you'll make it easier for users to install and manage. If you're up for it, check out the official documentation to create a formula for your app. The formula is just a Ruby script that explains how to install and manage your app using Homebrew.

Here's a quick rundown of the steps:

  1. Fork the Homebrew-core repo
  2. Create a new formula file in the Formula directory, using the right naming conventions
  3. Write the formula script with your app's URL, version, dependencies, and installation instructions
  4. Run brew audit --new-formula [Your Formula Name] to check for any issues
  5. Submit a pull request to the Homebrew-core repo

Perks of Homebrew:

  • Easier installation for users
  • Simple version management and updates
  • More visibility and discoverability
  • Integration with the Homebrew ecosystem

I hope you will consider this!

Thanks for your guide, but this app may should be refer to the cask section.

Mrered avatar Jul 31 '23 03:07 Mrered

I tried to write a demo, but I found that the software name changes with the system locale, so I don't know how to determine the value of the variable app 🥲

cask "pixel-perfect" do

  version "1.2"
  sha256 "163b96ba5bea26507a9625237726a20b8a4586250a6e5883700f20cadb65e386"

  url "https://github.com/cormiertyshawn895/PixelPerfect/releases/download/#{version}/PixelPerfect.#{version}.zip",
    verified:   "github.com/cormiertyshawn895/"
  name "Pixel Perfect"
  desc "Pixel Perfect lets you increase the text size of iPhone and iPad apps on Mac. Say goodbye to small and blurry text, and enjoy pixel-perfect graphics, all rendered at 100% native resolution. Compatible with macOS Sonoma, macOS Ventura, macOS Monterey, and macOS Big Sur."
  homepage "https://github.com/cormiertyshawn895/PixelPerfect"

  livecheck do
    url :url
    strategy :github_latest
  end

  auto_updates true
  app "纤毫毕现(右键打开).app"

  zap trash: [
    "~/Library/Caches/com.mac.PixelPerfect",
    "~/Library/HTTPStorages/com.mac.PixelPerfect",
    "~/Library/Preferences/com.mac.PixelPerfect.plist",
  ]
end

ps: I use Chinese Simplified. Most of the time, I come across software whose names do not change with the system language. By the way, the Chinese of the software is a good name! 🥳

I think I found the answer: Stanza: language

Mrered avatar Jul 31 '23 03:07 Mrered

I've implemented third-party Homebrew support.

Mrered avatar Jul 31 '23 04:07 Mrered

I tried to write a demo, but I found that the software name changes with the system locale, so I don't know how to determine the value of the variable app 🥲

cask "pixel-perfect" do

  version "1.2"
  sha256 "163b96ba5bea26507a9625237726a20b8a4586250a6e5883700f20cadb65e386"

  url "https://github.com/cormiertyshawn895/PixelPerfect/releases/download/#{version}/PixelPerfect.#{version}.zip",
    verified:   "github.com/cormiertyshawn895/"
  name "Pixel Perfect"
  desc "Pixel Perfect lets you increase the text size of iPhone and iPad apps on Mac. Say goodbye to small and blurry text, and enjoy pixel-perfect graphics, all rendered at 100% native resolution. Compatible with macOS Sonoma, macOS Ventura, macOS Monterey, and macOS Big Sur."
  homepage "https://github.com/cormiertyshawn895/PixelPerfect"

  livecheck do
    url :url
    strategy :github_latest
  end

  auto_updates true
  app "纤毫毕现(右键打开).app"

  zap trash: [
    "~/Library/Caches/com.mac.PixelPerfect",
    "~/Library/HTTPStorages/com.mac.PixelPerfect",
    "~/Library/Preferences/com.mac.PixelPerfect.plist",
  ]
end

ps: I use Chinese Simplified. Most of the time, I come across software whose names do not change with the system language. By the way, the Chinese of the software is a good name! 🥳

In fact, you don't need to think about the application display name.

Mrered avatar Jul 31 '23 04:07 Mrered