Skip to content

Commit

Permalink
feat: support termux (android) (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
idranme authored Apr 9, 2024
1 parent 25b8451 commit f1d8ecf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/finder/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ function findChromes() {
switch (process.platform) {
case 'win32': return win32()
case 'darwin': return darwin()
case 'linux': return linux()
case 'linux':
case 'android':
return linux()
default:
throw ERROR_PLATFORM_NOT_SUPPORT
}
Expand All @@ -20,7 +22,7 @@ function findChromes() {
* @returns executable chrome full path
* @throws
* if no executable chrome find, ERROR_NO_INSTALLATIONS_FOUND will be throw
* if platform is not one if ['win32','darwin','linux'], ERROR_PLATFORM_NOT_SUPPORT will be throw
* if platform is not one if ['win32','darwin','linux','android'], ERROR_PLATFORM_NOT_SUPPORT will be throw
*/
export = function findChrome() {
const installations = findChromes()
Expand Down

0 comments on commit f1d8ecf

Please sign in to comment.