HISE Logo Forum
    • Categories
    • Register
    • Login

    extractZipFile problem

    Scheduled Pinned Locked Moved General Questions
    81 Posts 5 Posters 4.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • LindonL
      Lindon @d.healey
      last edited by

      @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/28ce837575f60fe0e00e8d77060bbfdae7bd1db6

      but I'm pretty clueless about Macos...

      HISE Development for hire.
      www.channelrobot.com

      1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @d.healey
        last edited by

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

        HISE Development for hire.
        www.channelrobot.com

        d.healeyD LindonL 2 Replies Last reply Reply Quote 0
        • d.healeyD
          d.healey @Lindon
          last edited by

          @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.

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @d.healey
            last edited by

            @d-healey - didnt actaully try it - I will go away and try...

            HISE Development for hire.
            www.channelrobot.com

            LindonL 1 Reply Last reply Reply Quote 1
            • LindonL
              Lindon @Lindon
              last edited by Lindon

              @d-healey -- Okay well if I understand what your test is and what I'm supposed to do:

              1. First button select a zip
              2. second button select a folder
              3. 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...

              HISE Development for hire.
              www.channelrobot.com

              d.healeyD 1 Reply Last reply Reply Quote 0
              • LindonL
                Lindon @Lindon
                last edited by

                @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...

                HISE Development for hire.
                www.channelrobot.com

                1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey @Lindon
                  last edited by

                  @Lindon said in extractZipFile problem:

                  @d-healey -- Okay well if I understand what your test is and what I'm supposed to do:

                  1. First button select a zip
                  2. second button select a folder
                  3. 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 :)

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  LindonL 1 Reply Last reply Reply Quote 0
                  • LindonL
                    Lindon @d.healey
                    last edited by

                    @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...

                    HISE Development for hire.
                    www.channelrobot.com

                    d.healeyD 1 Reply Last reply Reply Quote 0
                    • d.healeyD
                      d.healey @Lindon
                      last edited by

                      @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.

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public HISE tutorials

                      LindonL 1 Reply Last reply Reply Quote 0
                      • LindonL
                        Lindon @d.healey
                        last edited by

                        @d-healey said in extractZipFile problem:

                        @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.

                        Compiled, tried - still fails - will try codesigning and notarizing...tho I cant see how that will make any difference...

                        HISE Development for hire.
                        www.channelrobot.com

                        d.healeyD 1 Reply Last reply Reply Quote 0
                        • d.healeyD
                          d.healey @Lindon
                          last edited by

                          @Lindon I'll fire up my old mac now and see what result I get

                          Libre Wave - Freedom respecting instruments and effects
                          My Patreon - HISE tutorials
                          YouTube Channel - Public HISE tutorials

                          1 Reply Last reply Reply Quote 0
                          • d.healeyD
                            d.healey
                            last edited by

                            Same issue for me on Mojave. I also notice (and I remember Christoph telling me about this) that zip files automatically extract on download...

                            Libre Wave - Freedom respecting instruments and effects
                            My Patreon - HISE tutorials
                            YouTube Channel - Public HISE tutorials

                            LindonL 1 Reply Last reply Reply Quote 0
                            • LindonL
                              Lindon @d.healey
                              last edited by

                              @d-healey not really worrying about download extraction...:-)

                              HISE Development for hire.
                              www.channelrobot.com

                              d.healeyD 1 Reply Last reply Reply Quote 0
                              • d.healeyD
                                d.healey @Lindon
                                last edited by

                                @Lindon said in extractZipFile problem:

                                @d-healey not really worrying about download extraction...:-)

                                Yet :)

                                Libre Wave - Freedom respecting instruments and effects
                                My Patreon - HISE tutorials
                                YouTube Channel - Public HISE tutorials

                                1 Reply Last reply Reply Quote 0
                                • d.healeyD
                                  d.healey
                                  last edited by

                                  To confirm, those sandbox settings didn't make a difference here either. I'll keep searching. I guess as a last resort we can use the user's plugin folder instead of the system one.

                                  Libre Wave - Freedom respecting instruments and effects
                                  My Patreon - HISE tutorials
                                  YouTube Channel - Public HISE tutorials

                                  Matt_SFM 1 Reply Last reply Reply Quote 0
                                  • Matt_SFM
                                    Matt_SF @d.healey
                                    last edited by

                                    @d-healey @Lindon coming back late here but FYI, I just tested David's test project, compiled it as a standalone and it works just fine. Didn't ask for anything, it extracted correctly the zip file into my Audio/Plug-Ins/VST3/TESTDIR

                                    @Lindon said in extractZipFile problem:

                                    So, all you MacOS experts ...how do I get my app to start with super user permissions....?

                                    AFAIK if your app requires writing permission, the user will be prompted to allow access when needed. Like, at the beginning of this thread when I tested the extracting function, HISE asked for permission the first time, then never again afterwards.

                                    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...

                                    This option must be checked : "Require admin password for installation". But it should be checked by default.

                                    3c248c06-8f55-4088-9856-29a60bb7f168-image.png

                                    But maybe tweaking these options for your installer might do the trick...? (I've never used them) :

                                    accc4be2-beee-4421-b87b-585b10532a1d-image.png

                                    The Installer - App isn't code signed but requires entitlements. It is not possible to add entitlements to a binary without signing it.

                                    I also get this warning but when I ignore it, I still can codesign/notarize my plugins correctly :)

                                    Develop branch
                                    Win10 & VS17 / Ventura & Xcode 14. 3

                                    d.healeyD 1 Reply Last reply Reply Quote 0
                                    • d.healeyD
                                      d.healey @Matt_SF
                                      last edited by

                                      @Matt_SF Are you using Mojave? The problem doesn't exist on Big Sur or Monterey but is only on earlier versions.

                                      Packages may impart the necessary permissions on our binaries (but I I don't see how it could) I'll have to test.

                                      Libre Wave - Freedom respecting instruments and effects
                                      My Patreon - HISE tutorials
                                      YouTube Channel - Public HISE tutorials

                                      Matt_SFM 1 Reply Last reply Reply Quote 0
                                      • Matt_SFM
                                        Matt_SF @d.healey
                                        last edited by

                                        @d-healey said in extractZipFile problem:

                                        @Matt_SF Are you using Mojave? The problem doesn't exist on Big Sur or Monterey but is only on earlier versions.

                                        Ah, indeed I'm on Monterey.

                                        Packages may impart the necessary permissions on our binaries (but I I don't see how it could) I'll have to test.

                                        I also thought that would be weird... About the write permission I highlighted in my last screenshot, this is what the documentation says :
                                        "Access : The access permissions for the item after it's installed on disk."

                                        Develop branch
                                        Win10 & VS17 / Ventura & Xcode 14. 3

                                        d.healeyD 1 Reply Last reply Reply Quote 0
                                        • d.healeyD
                                          d.healey @Matt_SF
                                          last edited by

                                          @Matt_SF I just tested and the installer makes no difference in this case.

                                          Libre Wave - Freedom respecting instruments and effects
                                          My Patreon - HISE tutorials
                                          YouTube Channel - Public HISE tutorials

                                          1 Reply Last reply Reply Quote 0
                                          • d.healeyD
                                            d.healey
                                            last edited by d.healey

                                            Codesigning doesn't seem to help. Haven't tried notarizing but since this wasn't necessary before Catalina I don't think it will help.

                                            Unless someone offers a solution I'm just going to install it in the user's plugin folder for anything below Big Sur. Engine.getSystemStats() is helpful here ;)

                                            Libre Wave - Freedom respecting instruments and effects
                                            My Patreon - HISE tutorials
                                            YouTube Channel - Public HISE tutorials

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            32

                                            Online

                                            1.8k

                                            Users

                                            12.2k

                                            Topics

                                            106.0k

                                            Posts