Remove xattr via obj-c (#3328)

* Remove xattr via obj-c

* Revert "Remove xattr via obj-c"

This reverts commit 880a4e0b409fa552d16e7d6b1cef6fd9e9e86c0a.

* Fixed path xattr call
This commit is contained in:
Lea Anthony
2024-03-24 12:32:14 +11:00
committed by GitHub
parent 3694dd2a55
commit bf2d6d3241
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ func GenerateBindings(options Options) (string, error) {
if runtime.GOOS == "darwin" {
// Remove quarantine attribute
stdout, stderr, err = shell.RunCommand(workingDirectory, "xattr", "-rc", filename)
stdout, stderr, err = shell.RunCommand(workingDirectory, "/usr/bin/xattr", "-rc", filename)
if err != nil {
return stdout, fmt.Errorf("%s\n%s\n%s", stdout, stderr, err)
}
+1 -1
View File
@@ -327,7 +327,7 @@ func execBuildApplication(builder Builder, options *Options) (string, error) {
if _, err := os.Stat(options.CompiledBinary); os.IsNotExist(err) {
return "", fmt.Errorf("compiled binary does not exist at path: %s", options.CompiledBinary)
}
stdout, stderr, err := shell.RunCommand(options.BinDirectory, "xattr", "-rc", options.CompiledBinary)
stdout, stderr, err := shell.RunCommand(options.BinDirectory, "/usr/bin/xattr", "-rc", options.CompiledBinary)
if err != nil {
return "", fmt.Errorf("%s - %s", err.Error(), stderr)
}