Last active
January 28, 2023 09:48
-
-
Save benigumocom/80613edea97b280b13758cc461e6880c to your computer and use it in GitHub Desktop.
Find Android Studio Embedded JDK Home Paths
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
| #!/bin/bash | |
| IFS=$'\n' apps=$(mdfind kMDItemCFBundleIdentifier="com.google.android.studio*") | |
| for app in $apps | |
| do | |
| # echo "$app" | |
| home=$(find "$app" | grep -E "/(jdk|jbr)/Contents/Home$") | |
| version=$("${home}/bin/java" --version) | |
| echo "\"$home\"" | |
| echo "$version" | |
| echo | |
| done | |
| echo "https://plugins.jetbrains.com/docs/intellij/android-studio-releases-list.html" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
【macOS】Android Studio 埋め込みJDKのHomeのパスを取得する
👉 https://android.benigumo.com/20230128/macos-android-studio-jdk/