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:
parent
3694dd2a55
commit
bf2d6d3241
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user