Skip to content

Commit

Permalink
env: fix cmdline-tools version directory
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon committed Jun 12, 2024
1 parent 402b6b9 commit ba54fab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion android/env/env.v
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,9 @@ fn ensure_sdkmanager(verbosity int) !bool {

util.unzip(file, dst)!
if os.is_dir(os.join_path(dst, 'cmdline-tools', 'bin')) {
os.mv(os.join_path(dst, 'cmdline-tools'), os.join_path(dst, def_components['cmdline-tools']['version']))!
fixed_path := os.join_path(dst, def_components['cmdline-tools']['version'])
os.mv(os.join_path(dst, 'cmdline-tools'), fixed_path)!
dst_check = os.join_path(dst, fixed_path, 'bin')
}

os.chmod(os.join_path(dst_check, 'sdkmanager'), 0o755)!
Expand Down

0 comments on commit ba54fab

Please sign in to comment.