(binPath string)
| 847 | } |
| 848 | |
| 849 | func codesignBinary(binPath string) error { |
| 850 | codesignExe, err := safeexec.LookPath("codesign") |
| 851 | if err != nil { |
| 852 | return err |
| 853 | } |
| 854 | cmd := exec.Command(codesignExe, "--sign", "-", "--force", "--preserve-metadata=entitlements,requirements,flags,runtime", binPath) |
| 855 | return cmd.Run() |
| 856 | } |
| 857 | |
| 858 | // cleanExtensionUpdateDir deletes the extension-specific directory containing metadata used in checking for updates. |
| 859 | // Because extension names are not unique across GitHub organizations and users, we feel its important to clean up this metadata |
no test coverage detected