Commit graph

27 commits

Author SHA1 Message Date
Vilius Sutkus '89
da1ab05e31 Comments about mkdir/rmdir 2021-03-03 00:43:22 +02:00
Laura
7506bcd002
[Issue #108] Overwrite CLI Tools (#115)
* Trying this

* Revert "Trying this"

This reverts commit 46eab8f218.

* Put exists check around tools move

* Remove directory before copying over it

* Reverted indent

* Revert additional two spaces
2021-03-03 00:02:20 +02:00
Vilius Sutkus '89
0bdb2caf82
[issue #108] Remove zip extraction leftovers 2021-03-02 03:05:42 +02:00
Vilius Sutkus '89
cc38275357 Un-whitespace ANDROID_SDK_ROOT
sdkmanager doesn't like spaces in it's path.
Move the whole SDK to a place without spaces.
2021-02-20 23:03:41 +01:00
Vilius Sutkus '89
999dabf39c Use fs-extra.moveSync instead of fs.renameSync to move cmdline-tools
fs.renameSync can't rename across drives.
2021-02-20 23:03:41 +01:00
Vilius Sutkus '89
6bde8445cd Call sdkmanager, not .bat on windows too, it just works 2021-02-20 23:03:41 +01:00
Vilius Sutkus '89
87280a34d4 Check if sdkManager is actually available
GitHub Actions have Android-SDK preinstalled, but there's no sdkmanager.
Missing sdkmanager means no additional packages can be easily installed by dowsntream users.
2021-02-20 23:03:41 +01:00
Max Romanyuta
27f88822ed Fix lint problems 2020-12-21 09:16:42 +01:00
Max Romanyuta
a9018e09bb Remove unnecessary changes 2020-12-21 09:16:42 +01:00
Max Romanyuta
6bb81b1f40 Fix path to sdkmanager for all platforms 2020-12-21 09:16:42 +01:00
Max Romanyuta
7b2dad077d Fix path to sdkmanager
In the commandlinetools-${OS}-${TOOLS_VERSION}_latest.zip file, the name of the zipped folder has been changed.
2020-12-21 09:16:42 +01:00
Brian Ballsun-Stanton
9ee0d8a034 bumped package lock for 1.2.6 and made sure to output hardcoded commandline tools version 2020-11-06 16:50:43 +01:00
Brian Ballsun-Stanton
d7b9d01c78 recompile, update android version 2020-11-06 16:50:43 +01:00
Dave Olsthoorn
331008df41 Fix test for download, only test if licenseDir exists 2020-08-26 18:51:04 +02:00
Dave Olsthoorn
24b7e80ade Changeup: consilidate code, drop cache, change download
This changes up way too much:
- Moving most (all) of the code to main.ts instead of the numerous
  files
- Dropping the caching functionality, since it should be optional
- now we will only download the android sdk tools if they are not
  already present, including if ANDROID_SDK_ROOT is already set
2020-08-26 17:51:32 +02:00
Dave Olsthoorn
01efde8e60 fix linting 2020-08-11 19:59:48 +02:00
Dave Olsthoorn
469d66c201 Run prettier, to pass format-check 2020-08-11 19:25:29 +02:00
Dave Olsthoorn
035deb0e29 only setup for caching if things are changed 2020-07-25 20:51:01 +02:00
Dave Olsthoorn
22d4a3f682 Breaks cache version on purpouse 2020-07-25 20:38:52 +02:00
Dave Olsthoorn
2381fc9bef Set --sdk_root for accepting licenses 2020-07-25 19:37:43 +02:00
Dave Olsthoorn
c9080c4243 also cache repository info 2020-07-25 19:24:48 +02:00
Dave Olsthoorn
4de319a2e2 correct bin path for sdkmanager 2020-07-25 18:37:02 +02:00
Dave Olsthoorn
90244e0383 Debug installing android sdk tools 2020-07-25 18:34:51 +02:00
Dave Olsthoorn
64495f005b Attempt at first version 2020-07-25 18:07:39 +02:00
Dave Olsthoorn
668f98f7ee run build 2020-07-14 22:11:04 +02:00
Dave Olsthoorn
9e58d95cb5 Several fixes
These include
- register ANDROID_SDK_ROOT
- add some license hash handling
2020-07-14 22:07:34 +02:00
Dave Olsthoorn
47171f7d89 Initial changes for setup-android 2020-07-14 17:41:00 +02:00