packages icon indicating copy to clipboard operation
packages copied to clipboard

Installed plugin doesn't retain its file type and shows up as a folder instead on M1 Mac

Open beyhanklc opened this issue 2 years ago • 4 comments

The installed plugin doesn't retain its file type and shows up as a folder instead. I am seeing this on all plugin formats, VST, VST3, AU, AAX plugins. You can see the below image, the created folder is forbidden and it says:

The folder “MyPlugin.component” can’t be opened because you don’t have permission to see its contents

Same installer that was built on Intel Mac Catalina, works on M1 Mac. But if that installer is built on on M1 Mac Mini and also M1 MacBook Pro (Monterey & BigSur), I am getting below result on the same system.

plggg

beyhanklc avatar Apr 26 '22 12:04 beyhanklc

I would suggest to check the POSIX permissions in the Terminal and in the payload of the project. And also compare the working .pkg to the not working .pkg using Pacifist.

packagesdev avatar Apr 28 '22 07:04 packagesdev

Thank you for the suggestions. Ok I made some tests. After adjusting the POSIX permissions, apparently that fixed the issue. Just for checking, is it ok to give all permissions for this case like below?

Not working version

before


Working version

after

beyhanklc avatar Apr 28 '22 18:04 beyhanklc

Others should not have Write permission => drwxrwxr-x

packagesdev avatar Apr 28 '22 20:04 packagesdev

I have the same problem with an .app payload, Finder just displays this icon Bildschirmfoto 2022-05-18 um 15 35 13 and the app can't be opened.

But I have the same problem no matter whether I build on an M1 Mac or an Intel Mac.

Edit: I just recreated the problem with a new .pkgproj with this app https://dl.nwjs.io/v0.64.1/nwjs-v0.64.1-osx-x64.zip which my app is based on in case that is helpful Also, if I chown the app afterwards as my own user it works again, but doing that in postinstall seems like a really hacky workaround

Edit2: Nevermind, I think my problem is caused a permission problem inside the nwjs.app itself, not by packages.

brinsche-fkt42 avatar May 18 '22 13:05 brinsche-fkt42