google / battery-historian

Battery Historian is a tool to analyze battery consumers using Android "bugreport" files.
Other
5.31k stars 957 forks source link

no compiled\historian-optimized.js #87

Open JoanJoanLIU opened 7 years ago

JoanJoanLIU commented 7 years ago

when I execute below command, i get a error as below.Anyone know why? C:\GoWorkspace\src\github.com\google\battery-historian>java -jar third_party\clo sure-compiler\compiler.jar --closure_entry_point historian.Historian --js js.j s --js third_party\closure-library\closure\goog* --only_closure_dependencies - -generate_exports --js_output_file compiled\historian-optimized.js --compilation _level SIMPLE_OPTIMIZATIONS ERROR - required entry point "historian.Historian" never provided

1 error(s), 0 warning(s)

tekkasit commented 7 years ago

Actually you don't need to do it.

go get -u github.com/google/battery-historian cd %GOPATH%\src\github.com\google\battery-historian go run setup.go That is all. No need to manually compile anymore. Now if you want to run just use the following command set GOPATH=%USERPROFILE%\go-workspace cd %GOPATH%\src\github.com\google\battery-historian go run cmd\battery-historian\battery-historian.go