mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user