extractZipFile problem
-
@Christoph-Hart I'm just making it the default on my fork, I'm not going to make a pull request. It's only in the standalone template, not the plugin template. At the moment everything I'm doing is with my standalone downloader so it's more convenient for me to have it as the default, I might change it in the future - or better yet use cmake ;)
-
@d-healey the proper solution would be to add a checkbox in the hise Project settings and then it will add those lines to the exporter template.
-
@Christoph-Hart Ooo that's a good idea
-
Looking at adding this now. Would an extra definition be better than a checkbox since it only applies to Windows?
-
Ah I see why extra definitions aren't suitable. I'll just add a checkbox.
-
-
@d-healey --sigh , now all sorts of permission problems on MacOS... so I dont think we are done here...
I cant get the app to write to any of the Plug-In folders....
So, all you MacOS experts ...how do I get my app to start with super user permissions....?
As far as I recall a WhiteBox generated installer (or MacOS when I try and start an installer) will ask for the password to start...
The error I am seeing is:
Failed to write to target file: /AAMyFirstProduct.vst3/Contents/Info.plist
-
@Lindon I didn't have to do anything special on MacOS it just worked. Which OS are you testing on?
-
@d-healey Mojave 10.14.5
-- researching now but I think you(we) will need to turn on sandboxing in the projucer file
-
@Lindon - perhaps someone (anyone!) with MacOS experience can point me in the right direction ??
-
@Lindon I thought the sandbox was a way to restrict the access an app has to the system. So not having the sandbox at all would be the most restriction free setup and if perms are required the user "should" be prompted.
I only tested on Big Sur and Monterey. I think my other system has Mojave on it (or it might be Catalina) I'll check.
-
@d-healey well I'm basically going on this info:
https://forum.juce.com/t/elevate-rights-on-osx/32868/16
https://forum.juce.com/t/fr-add-music-files-network-client-sandbox-entitlements/32866
https://github.com/juce-framework/JUCE/commit/28ce837575f60fe0e00e8d77060bbfdae7bd1db6but I'm pretty clueless about Macos...
-
So I tried setting the sandbox settings I needed and manually compiling n XCode, but XCode told me this warning:
TheInstaller - App isn't code signed but requires entitlements. It is not possible to add entitlements to a binary without signing it. (in target 'TheInstaller - App')
-
@Lindon What result do you get with the test project I posted in this thread a while back? I was testing from directly in HISE as well as compiled.
-
@d-healey - didnt actaully try it - I will go away and try...
-
@d-healey -- Okay well if I understand what your test is and what I'm supposed to do:
- First button select a zip
- second button select a folder
- press extract.....and get the contents of 1 inside 2
Then - fail sadly... test.txt never ends up in Audio/Plug-Ins/VST3
..what's worse is that it never reports an error...
-
@Lindon said in extractZipFile problem:
So I tried setting the sandbox settings I needed and manually compiling n XCode, but XCode told me this warning:
TheInstaller - App isn't code signed but requires entitlements. It is not possible to add entitlements to a binary without signing it. (in target 'TheInstaller - App')
...and I think this is why it still fails...
-
@Lindon said in extractZipFile problem:
@d-healey -- Okay well if I understand what your test is and what I'm supposed to do:
- First button select a zip
- second button select a folder
- press extract.....and get 1 inside 2
Then - fail sadly... test.txt never ends up in Audio/Plug-Ins/VST3
Yep you understood perfectly. Did you test from within HISE or did you compile?
Now that we have a simple test I can attempt to recreate your result and we can find a solution.
BTW I intentionally labelled the checkbox I added to HISE "Admin Permissions" because I figured it may be needed for more than just Windows at some point :)
-
@d-healey said in extractZipFile problem:
Yep you understood perfectly. Did you test from within HISE or did you compile?
Now that we have a simple test I can attempt to recreate your result and we can find a solution.
BTW I intentionally labelled the checkbox I added to HISE "Admin Permissions" because I figured it may be needed for more than just Windows at some point :)
_ I only tested from within HISE at the moment, I will try compiling now...
-
@Lindon said in extractZipFile problem:
_ I only tested from within HISE at the moment, I will try compiling now...
Might also be worth seeing if codesigning or notarizing makes a difference.