Closed soumyaDghosh closed 6 months ago
I wonder, android studio has an internal update checker. Is there any way to find out what URL that uses? Maybe we could use the same url instead of these oneliners
@merlijn-sebrechts
It's showing that the updates are managed by Snap.
can you update your PR to get the latest update version and name from https://dl.google.com/android/studio/patches/updates.xml
?
This is what the app uses when installed without snap, so this will be long-term stable. You just need to parse the XML.
should be easy to get it from this tag: <build apiVersion="AI-231.9392.1" number="AI-231.9392.1.2311.11076708" version="Hedgehog | 2023.1.1">
can you update your PR to get the latest update version and name from
https://dl.google.com/android/studio/patches/updates.xml
?
This url doesn't show the actual version number and the url to download. I'd still need to have a separate url to get the actual version number which is currently 2023.1.1.26
@soumyaDghosh seems like there is still an issue in the process: https://github.com/snapcrafters/android-studio/actions/runs/7193616466/job/19592441198
I have been looking into it from yesterday. And what I am thinking is, the url has /
in it, which is probably confusing the sed
command. I can't found any answer for it other than this.
EDIT: I can confirm this now.
Temporarily.. should we shift to yq
?
Sure!
I commented on #120, but sed
can be used with any separator to get around this, so you can do:
sed -i 's|foo|bar'
or sed -i 's#foo#bar'
etc.