tools.go 247 B

12345678910111213141516
  1. package zipalign
  2. import (
  3. "os"
  4. "path/filepath"
  5. )
  6. func zipalignFromPath(dirPath string) Zipalign {
  7. binPath := filepath.Join(dirPath, "zipalign")
  8. _, err := os.Stat(binPath)
  9. if err != nil {
  10. panic(err)
  11. }
  12. return Zipalign{binPath: binPath}
  13. }