Skip to content

Commit

Permalink
Add homebrew install instructions and test
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishb committed Jul 5, 2023
1 parent 5f34af5 commit d63573d
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/install-adb-enhanced-from-homebrew.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Install adb-enhanced via homebrew

on:
schedule:
- cron: '0 0 * * 0' # Sunday midnight UTC
push:
branches: [master, main]
paths:
- '.github/workflows/install-adb-enhanced-from-homebrew.yml'
pull_request:
branches: [master, main]
paths:
- '.github/workflows/install-adb-enhanced-from-homebrew.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
installHomebrew:
runs-on: macos-latest
timeout-minutes: 15

steps:
- name: checkout
uses: actions/checkout@v3

- name: Install adb-enhanced from homebrew
run: |
# TODO(ashishb): Remove update after Aug 1, 2023
brew update || echo "brew update failed, still proceeding"
brew link --force python@3.11
HOMEBREW_NO_INSTALL_CLEANUP=true brew install --verbose adb-enhanced || true
adbe --version
brew uninstall adb-enhanced
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ADB Enhanced [![Downloads](http://pepy.tech/badge/adb-enhanced)](http://pepy.tech/project/adb-enhanced) [![PyPI version](https://badge.fury.io/py/adb-enhanced.svg)](https://badge.fury.io/py/adb-enhanced)
# ADB Enhanced [![Downloads](http://pepy.tech/badge/adb-enhanced)](http://pepy.tech/project/adb-enhanced) [![PyPI version](https://badge.fury.io/py/adb-enhanced.svg)](https://badge.fury.io/py/adb-enhanced) ![Homebrew downloads](https://img.shields.io/homebrew/installs/dm/adb-enhanced?label=Homebrew%20downloads) [![Homebrew package](https://repology.org/badge/version-for-repo/homebrew/adb-enhanced.svg)](https://repology.org/project/adb-enhanced/versions)

![Logo](docs/logo.png)

Expand All @@ -14,7 +14,7 @@ A command-line interface to trigger various scenarios like screen rotation, batt

[![AdbeInstallTests](https://github.com/ashishb/adb-enhanced/actions/workflows/adbe-installtests.yml/badge.svg)](https://github.com/ashishb/adb-enhanced/actions/workflows/adbe-installtests.yml) [![AdbeUnitTests](https://github.com/ashishb/adb-enhanced/actions/workflows/adbe-unittests.yml/badge.svg)](https://github.com/ashishb/adb-enhanced/actions/workflows/adbe-unittests.yml)

[![Install adb-enhanced via pip](https://github.com/ashishb/adb-enhanced/actions/workflows/install-adb-enhanced-from-pip.yml/badge.svg)](https://github.com/ashishb/adb-enhanced/actions/workflows/install-adb-enhanced-from-pip.yml)
[![Install adb-enhanced via pip](https://github.com/ashishb/adb-enhanced/actions/workflows/install-adb-enhanced-from-pip.yml/badge.svg)](https://github.com/ashishb/adb-enhanced/actions/workflows/install-adb-enhanced-from-pip.yml) [![Install adb-enhanced via homebrew](https://github.com/ashishb/adb-enhanced/actions/workflows/install-adb-enhanced-from-homebrew.yml/badge.svg)](https://github.com/ashishb/adb-enhanced/actions/workflows/install-adb-enhanced-from-homebrew.yml)

[![AdbeUnitTests-Api16](https://github.com/ashishb/adb-enhanced/actions/workflows/adbe-unittests-api16.yml/badge.svg)](https://github.com/ashishb/adb-enhanced/actions/workflows/adbe-unittests-api16.yml)
[![AdbeUnitTests-Api21](https://github.com/ashishb/adb-enhanced/actions/workflows/adbe-unittests-api21.yml/badge.svg)](https://github.com/ashishb/adb-enhanced/actions/workflows/adbe-unittests-api21.yml)
Expand All @@ -40,8 +40,14 @@ See [Release announcement](https://ashishb.net/tech/introducing-adb-enhanced-a-s

## Installation

### Recommended

`sudo pip3 install adb-enhanced`

### Alternative on Mac OS via Homebrew

`brew install adb-enhanced`

## Note

1. `sudo pip install adb-enhanced` for python2 based install works as well but, I would recommend moving to python3 since I will deprecate python2 support anytime after Dec 31, 2018.
Expand Down

0 comments on commit d63573d

Please sign in to comment.