Skip to content

Commit

Permalink
Fix string escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
edo9300 committed Apr 18, 2021
1 parent a43f613 commit 7691b54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ci/install-sdk-ndk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ KEY=$(echo $(reg query 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVers
INSTALLATION_ID="$VS_PREFIX${KEY##*.}"

# These registry entries are normally set through the GUI: Tools\Options\Xamarin\Android Settings
reg add 'HKCU\SOFTWARE\Xamarin\VisualStudio\$INSTALLATION_ID\Android' -v AndroidSdkDirectory -t REG_SZ -d "$ANDROID_SDK_ROOT" -f
reg add 'HKCU\SOFTWARE\Xamarin\VisualStudio\'$INSTALLATION_ID'\Android' -v AndroidSdkDirectory -t REG_SZ -d "$ANDROID_SDK_ROOT" -f
# Sometimes installed by Microsoft in C:\ProgramData\Microsoft\AndroidNDK64 but not present on CI
reg add 'HKCU\SOFTWARE\Xamarin\VisualStudio\$INSTALLATION_ID\Android' -v AndroidNdkDirectory -t REG_SZ -d "C:\android-ndk-r15c" -f
reg add 'HKCU\SOFTWARE\Xamarin\VisualStudio\'$INSTALLATION_ID'\Android' -v AndroidNdkDirectory -t REG_SZ -d "C:\android-ndk-r15c" -f
# Visual Studio Installer provides this JDK for Android development
reg add 'HKCU\SOFTWARE\Xamarin\VisualStudio\$INSTALLATION_ID\Android' -v JavaSdkDirectory -t REG_SZ -d "$JAVA_HOME" -f
reg add 'HKCU\SOFTWARE\Xamarin\VisualStudio\'$INSTALLATION_ID'\Android' -v JavaSdkDirectory -t REG_SZ -d "$JAVA_HOME" -f

# Manually install Android SDK Platform 24, the most recent version that still works with Embeddinator 0.4.0
# cd "$ANDROID_SDK_ROOT"
Expand Down

0 comments on commit 7691b54

Please sign in to comment.