Skip to content
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

display-pilot 1.5.0.0_Mac_250102090118 (new cask) #198207

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Casks/d/display-pilot.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
cask "display-pilot" do
version "1.5.0.0_Mac_250102090118"
sha256 "deef444a8d9a32ac75939862e0e32ead901f04099a696a8a85dd60944f58aa85"

url "https://esupportdownload.benq.com/esupport/VERTICAL%20&%20PROFESSIONAL%20DISPLAY/Software/Display%20Pilot%202/Display%20Pilot%202%20for%20Mac_V#{version}.zip"
name "Display Pilot 2"
desc "Streamlines display control: brightness, inputs, pivot, and more"
homepage "https://www.benq.com/en-ap/monitor/software/display-pilot-2.html"

livecheck do
skip "No reliable way to get version info"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the suggestion! Unfortunately, using page match isn’t feasible because the content on the page is rendered on the front end. Additionally, the API endpoint (https://www.benq.com/api/esupport-tm/getFiles/en_gb/display%20pilot%202/en_gb,ge_ge) requires an Accept-Encoding header and returns 401 otherwise. (Weird design?)

Let me know if there’s an alternative approach you’d recommend!

Copy link
Member

@bevanjkay bevanjkay Jan 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a url provided by the in-app updater that only include the version number - https://qspublic.s3.ap-southeast-1.amazonaws.com/qspublic/qs_app/1001/Display Pilot 2Setup-1.5.0.0-release.dmg

If that link is suitable for the url, we can find the latest version using the spec page for livecheck - https://www.benq.com/en-ap/monitor/software/display-pilot-2/spec.html

We tend not to include software without a reliable livecheck in homebrew-cask, as the maintenance burden is less when the versions can be updated and checked systematically.

end

depends_on macos: ">= :big_sur"

app "Display Pilot 2.app"

zap trash: "~/Library/Preferences/com.benq.DisplayPilot2.plist"
end
Loading