5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 03:51:18 +08:00

Remove xattr via obj-c (#3328)

* Remove xattr via obj-c

* Revert "Remove xattr via obj-c"

This reverts commit 880a4e0b40.

* 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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

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)
}

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)
}