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