func getArmArchName(settings *config.Settings) string { armArchName := settings.GetTaskSettingString(TASK_DEB_GEN, "armarch") if armArchName == "" { //derive it from GOARM version: goArm := settings.GetTaskSettingString(TASK_XC, "GOARM") if goArm == "5" { armArchName = "armel" } else { armArchName = "armhf" } } return armArchName }
func codesignPlat(goos, arch string, binPath string, settings *config.Settings) error { // settings.codesign only works on OS X for binaries generated for OS X. id := settings.GetTaskSettingString("codesign", "id") if id != "" && runtime.GOOS == platforms.DARWIN && goos == platforms.DARWIN { if err := signBinary(binPath, id); err != nil { log.Printf("codesign failed: %s", err) return err } else { if !settings.IsQuiet() { log.Printf("Signed with ID: %q", id) } return nil } } return nil }