Skip to content

Commit

Permalink
extractor: Add preliminary cygwin support (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
electimon authored and erfanoabdi committed Mar 5, 2021
1 parent 44b40fe commit 0da2451
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ pip install backports.lzma protobuf pycrypto
```
Also install [mono](https://www.mono-project.com/docs/getting-started/install/mac/)

### Windows
Install cygwin, and select

```Latest python and pip packages, arj, brotli, cabextract, dos2unix, lz4, p7zip, renameutils, sharutils, unace, unzip and zip```

If you get syntax errors run dos2unix on extractor.sh

# How to use
## Download
```
Expand Down
3 changes: 3 additions & 0 deletions extractor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ fi

LOCALDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
HOST="$(uname)"
if [[ "$(uname)" == *CYGWIN* ]]; then
HOST=Windows
fi
toolsdir="$LOCALDIR/tools"

if [[ ! -d "$toolsdir/extract_android_ota_payload" ]]; then
Expand Down
Binary file added tools/Windows/bin/libgcc_s_dw2-1.dll
Binary file not shown.
Binary file added tools/Windows/bin/libstdc++-6.dll
Binary file not shown.
Binary file added tools/Windows/bin/simg2img.exe
Binary file not shown.
Binary file added tools/Windows/bin/zlib1.dll
Binary file not shown.

0 comments on commit 0da2451

Please sign in to comment.