Closed SadRebel1000 closed 4 years ago
On February 10th all remaining HockeyApp apps were moved to App Center (link), and the current download link for this Cask redirects to:
-bash-5.0.16- /Users/miccal (33) [> curl -sLI https://rink.hockeyapp.net/api/2/apps/5e0c144289a51fca2d3bfa39ce7f2b06/app_versions/531?format=zip
[SNIP]
Location: https://appcenter-filemanagement-distrib1ede6f06e.azureedge.net/af496428-61a4-4f3b-9966-f1e59bac43bf/Microsoft%20Remote%20Desktop%20Beta.app.zip?sv=2019-02-02&sr=c&sig=V%2BINIBf3H%2FBqZdootOb7S94VnSWWdpOSESdDKde8Jfo%3D&se=2020-04-17T14%3A45%3A33Z&sp=r
[SNIP]
The appcast
for Microsoft Remote Desktop Beta.app
now points to:
https://api.appcenter.ms/v0.1/public/sparkle/apps/5e0c1442-89a5-1fca-2d3b-fa39ce7f2b06
and the provided url
linking to the latest version (which at the moment is Version 10.4.0 (1772)) seems to constantly change -- for example, refreshing three times yields:
https://appcenter-filemanagement-distrib1ede6f06e.azureedge.net/af496428-61a4-4f3b-9966-f1e59bac43bf/Microsoft%20Remote%20Desktop%20Beta.app.zip?sv=2019-02-02&sr=c&sig=1I6Lmr%2Bur349nldNqxlT9PSQRBxwgSM0OubG2vu3Ke0%3D&se=2020-04-17T15%3A40%3A37Z&sp=r
https://appcenter-filemanagement-distrib1ede6f06e.azureedge.net/af496428-61a4-4f3b-9966-f1e59bac43bf/Microsoft%20Remote%20Desktop%20Beta.app.zip?sv=2019-02-02&sr=c&sig=Tl6jcUxyWCZxYMwOSqoUexNlr5CoD4yUlAOzsnhihao%3D&se=2020-04-17T15%3A45%3A41Z&sp=r
https://appcenter-filemanagement-distrib1ede6f06e.azureedge.net/af496428-61a4-4f3b-9966-f1e59bac43bf/Microsoft%20Remote%20Desktop%20Beta.app.zip?sv=2019-02-02&sr=c&sig=auNLqs%2BAaY6AKg4ASM1PHszSHrEsaYm4U7vz4%2F01a1A%3D&se=2020-04-17T15%3A41%3A28Z&sp=r
Notice that the string after https://appcenter-filemanagement-distrib1ede6f06e.azureedge.net/af496428-61a4-4f3b-9966-f1e59bac43bf/Microsoft%20Remote%20Desktop%20Beta.app.zip
changes each time.
No idea how to rectify this.
One more cask that we’ll need to remove due to those links.
can you explain a little more why? It's not really a solution right?
can you explain a little more why?
@miccal did, above. The links keep changing, which means we can’t add them to the cask, because next time someone tries to download it, it breaks.
Ok, didn't know this was general policy :) so the only solution would be to ask Microsoft what's up?
Ok, didn't know this was general policy :)
It’s not yet. We still have to open an issue on it.
so the only solution would be to ask Microsoft what's up?
It would be for them to provide links that not expire, yes.
"444" here counts the release, the latest release is the 444th release, which is listed in:
@frankli0324 the problem is the url
is unstable -- for example, refreshing your link https://install.appcenter.ms/api/v0.1/apps/rdmacios-k2vy/microsoft-remote-desktop-for-mac/distribution_groups/all-users-of-microsoft-remote-desktop-for-mac/releases/444
three times gives three different download_url
's:
https://appcenter-filemanagement-distrib1ede6f06e.azureedge.net/feff42f3-3d9d-4b8c-8dc3-6a0848043a51/Microsoft%20Remote%20Desktop%20Beta.app.zip?sv=2019-02-02&sr=c&sig=z%2F4QVUVqUhUWpO33ugV1NtdsuCb6idsKCXPU%2F%2FLkzTg%3D&se=2020-04-18T03%3A41%3A14Z&sp=r
https://appcenter-filemanagement-distrib1ede6f06e.azureedge.net/feff42f3-3d9d-4b8c-8dc3-6a0848043a51/Microsoft%20Remote%20Desktop%20Beta.app.zip?sv=2019-02-02&sr=c&sig=%2BHE0ECHHNyFiCQuAgsqhdiCrctTbnb84chRR9hygEmw%3D&se=2020-04-18T03%3A44%3A02Z&sp=r
https://appcenter-filemanagement-distrib1ede6f06e.azureedge.net/feff42f3-3d9d-4b8c-8dc3-6a0848043a51/Microsoft%20Remote%20Desktop%20Beta.app.zip?sv=2019-02-02&sr=c&sig=%2F91XlByD6%2BPDb3b2DfM31Lai%2F3XLeYEscnVpwdH%2B7T4%3D&se=2020-04-18T04%3A39%3A44Z&sp=r
can't that be solved with a submodule? something like url "#{Fetch.latest_url}"
@frankli0324 I am not sure if Homebrew-Cask has that functionality, but @vitorgalvao and/or @reitermarkus would know for certain.
so? is the method which #arbitrary-ruby-methods described an option?
module AppCenter
def self.get
require 'net/http'
require 'json'
url = URI('https://install.appcenter.ms/api/v0.1/apps'+
'/rdmacios-k2vy/microsoft-remote-desktop-for-mac/distribution_groups/'+
'all-users-of-microsoft-remote-desktop-for-mac/public_releases?scope=tester');
id = JSON.parse(Net::HTTP.get(url))[0]['id'];
url = URI('https://install.appcenter.ms/api/v0.1/apps'+
'/rdmacios-k2vy/microsoft-remote-desktop-for-mac'+
'/distribution_groups/all-users-of-microsoft-remote-desktop-for-mac'+
'/releases/%d' % id)
download_url = JSON.parse(Net::HTTP.get(url))['download_url'];
return download_url
end
end
update:
url do
require 'net/http'
require 'json'
base = URI(
'https://install.appcenter.ms/api/v0.1/apps' \
'/rdmacios-k2vy/microsoft-remote-desktop-for-mac' \
'/distribution_groups/all-users-of-microsoft-remote-desktop-for-mac' \
'/releases/latest',
)
JSON.parse(Net::HTTP.get(base))['download_url']
end
seems usable
so? is the method which #arbitrary-ruby-methods described an option?
No, not really. That’s worse than url do
. “Usable” isn’t the only metric; it has to be maintainable, and that’s not.
General troubleshooting steps
--force
.brew update-reset && brew update
and retried my command.brew doctor
, fixed as many issues as possible and retried my command. -> my system ready to brewDescription of issue
There is a checksum error however checking the version with 'brew cask _stanza version'
10.4.0.1771,531
is the same as last available version at
https://install.appcenter.ms/orgs/rdmacios-k2vy/apps/microsoft-remote-desktop-for-mac/distribution_groups/all-users-of-microsoft-remote-desktop-for-mac
so I'm affraid I don't really know what is wrong and what I can do.
Command that failed
or
or
Output of command with
--force --verbose --debug
Output of
brew cask doctor
Output of
brew tap