mihaip / dex-method-counts

Command-line tool to count per-package methods in Android .dex files
Apache License 2.0
2.6k stars 376 forks source link

Add Windows instructions #5

Closed FWest98 closed 9 years ago

FWest98 commented 9 years ago

Windows doesn't support the runfile you provided. You can make a .bat file, or provide the different code for Windows:

java -jar [path-to-generated-jar (./build/jar/....)] [filename to inspect]

mihaip commented 9 years ago

I don't have access to a Windows machine, would you mind submitting a pull request with the .bat file?

FWest98 commented 9 years ago

I don't know how to make such a file, but I do know that the command above works for Windows, so you can add that one to the readme. Users just have to get the path to the generated jar.

shriduttkothari commented 9 years ago

@echo off REM author shriduttkothari@gmail.com ant jar && java -jar build/jar/dex-method-counts.jar %1

tushatpatil293 commented 9 years ago

Thank you Mihai for this honest tool and not asking to upload the build ;)

For windows: -> Add path to apache-ant/bin to Environment variable -> make sure you have cygwin -> run >>> ant jar in cmd at path \dex-method-counts-master a jar will be generated at \dex-method-counts-master\build\jar

-> open cygwin.bat -> access the path for dex-method-counts-master folder..

-> execute $ ./dex-method-counts <path/to/App.apk>. here path to apk better to keep it inside the dex-method-counts-master folder to avoid issues related to path in cygwin. and here you go :)

mihaip commented 9 years ago

Done by 367330cb5c330faf13e835e469a6c81a5e8ec3e9