-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
netease uuremote 4.8.1 (new cask) #239684
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
Open
niu541412
wants to merge
7
commits into
Homebrew:main
Choose a base branch
from
niu541412:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+56
−0
Open
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
0d8d064
Add cask for UU Remote
niu541412 d247e60
Fix typo
niu541412 fe413b1
Fix formatting in uninstall section of uuremote.rb
niu541412 9d0f283
Update Casks/u/uuremote.rb
niu541412 d316fbf
Add verification for UU Remote download URL
niu541412 8617d6d
Fix URL verification for UU Remote cask
niu541412 c2814f8
Add verification to uuremote download URL
niu541412 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| cask "uuremote" do | ||
| version "4.8.1" | ||
| sha256 :no_check | ||
|
|
||
| url "https://api.nrd.nie.163.com/api/v1/release/dl/4?channel=gwqd" | ||
niu541412 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| name "UU Remote" | ||
| name "网易UU远程" | ||
| desc "NetEase UU remote desktop access and control tool" | ||
| homepage "https://uuyc.163.com/" | ||
|
|
||
| livecheck do | ||
| url :url | ||
| regex(/uuyc[._-]v?(\d+(?:\.\d+)+)\.pkg/i) | ||
| strategy :header_match | ||
| end | ||
|
|
||
| pkg "uuyc_#{version}.pkg" | ||
|
|
||
| postflight do | ||
| # The postinstall script automatically opens the app. Therefore, we must | ||
| # suppress this behavior to make the cask installation non-interactive. | ||
| retries ||= 3 | ||
| ohai "The UU Remote package postinstall script launches the app" if retries >= 3 | ||
| ohai "Attempting to close UU Remote to avoid unwanted user intervention" if retries >= 3 | ||
| return unless system_command "/usr/bin/pkill", args: ["-f", "/Applications/UURemote.app"] | ||
| rescue RuntimeError | ||
| sleep 1 | ||
| retry unless (retries -= 1).zero? | ||
| opoo "Unable to forcibly close UU Remote" | ||
| end | ||
|
|
||
| uninstall launchctl: [ | ||
| "com.netease.uuremote.agent", | ||
| "com.netease.uuremote.daemon", | ||
| ], | ||
| quit: "com.netease.uuremote", | ||
| pkgutil: "com.netease.uuremote", | ||
| delete: [ | ||
| "/Applications/UURemote.app", | ||
| "/Library/Caches/UURemote", | ||
| "/Library/LaunchAgents/com.netease.uuremote.agent.plist", | ||
| "/Library/LaunchDaemons/com.netease.uuremote.daemon.plist", | ||
| "/Users/Shared/UURemote", | ||
| ] | ||
|
|
||
| zap trash: [ | ||
| "~/Library/Application Support/com.netease.uuremote", | ||
| "~/Library/Caches/com.netease.uuremote", | ||
| "~/Library/Caches/com.netease.uuremote.server", | ||
| "~/Library/HTTPStorages/com.netease.uuremote", | ||
| "~/Library/HTTPStorages/com.netease.uuremote.server", | ||
| "~/Library/Preferences/com.netease.uuremote.plist", | ||
| "~/Library/Preferences/com.netease.uuremote.server.plist", | ||
| ] | ||
| end | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a checksum now that the url is versioned.