Skip to content

Commit

Permalink
Bug fix: C: becomes C\: on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
player-03 committed Oct 22, 2023
1 parent 1a3a9bd commit 9e09165
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/platforms/AndroidPlatform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,11 @@ class AndroidPlatform extends PlatformTarget
var escaped = ~/([ #!=\\:])/g;
context.ANDROID_SDK_ESCAPED = escaped.replace(context.ENV_ANDROID_SDK, "\\$1");
context.ANDROID_NDK_ROOT_ESCAPED = escaped.replace(context.ENV_ANDROID_NDK_ROOT, "\\$1");
if(project.host == WINDOWS) {
var drive = ~/^([A-Z])\\:/;
context.ANDROID_SDK_ESCAPED = drive.replace(context.ANDROID_SDK_ESCAPED, "$1:");
context.ANDROID_NDK_ROOT_ESCAPED = drive.replace(context.ANDROID_NDK_ROOT_ESCAPED, "$1:");
}

if (Reflect.hasField(context, "KEY_STORE")) context.KEY_STORE = StringTools.replace(context.KEY_STORE, "\\", "\\\\");
if (Reflect.hasField(context, "KEY_STORE_ALIAS")) context.KEY_STORE_ALIAS = StringTools.replace(context.KEY_STORE_ALIAS, "\\", "\\\\");
Expand Down

0 comments on commit 9e09165

Please sign in to comment.