HISE Logo Forum
    • Categories
    • Register
    • Login

    Creating an Installer on Mac - Can't access subfolders using Whitebox

    Scheduled Pinned Locked Moved General Questions
    55 Posts 11 Posters 3.7k 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.
    • L
      LeeC
      last edited by LeeC

      Considering trying your command line approach @d-healey but I honestly wouldn't know where to start.

      I checked out the github link that you sent, but I'm such a newb that I wouldn't know how to make use of the files within it ☹

      I know you were talking about setting up tutorials on Patreon a while back....
      Is this something that you've covered already?

      Any guidance would be golden.

      Thanks

      d.healeyD 1 Reply Last reply Reply Quote 0
      • orangeO
        orange @LeeC
        last edited by

        @LeeC Be sure that you made the plugin's file path "Absolute" in Packages. Go to the Payloads section, click on your plugin, on the right side, it should be set to Absolute.

        develop Branch / XCode 13.1
        macOS Monterey / M1 Max

        L 1 Reply Last reply Reply Quote 0
        • L
          LeeC @orange
          last edited by

          @orange Yes the plugin reference is definitely set to 'Absoulte Path' in the payloads section...

          Thanks

          1 Reply Last reply Reply Quote 0
          • L
            LeeC
            last edited by LeeC

            So just looked in a little deeper and they are infact installing to the hard drive.
            I noticed that there are two plugin locations on a Mac for anyone finding similar issues...

            1. Users>Computername>library>audio>plugins
            2. library>audio>plugins

            I was initially checking location 1 but the installer was writing to loaction 2.

            Thanks to everyone for helping out ☺

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

              @LeeC

              I know you were talking about setting up tutorials on Patreon a while back....
              Is this something that you've covered already?

              The Patreon has been going for a few months now but exporting plugins and building installers isn't something I covered yet. Probably won't get around to them until next year now.

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

              L 1 Reply Last reply Reply Quote 1
              • L
                LeeC @d.healey
                last edited by

                @d-healey Thanks for letting me know.
                Will definitely check out the Patreon once I get over this installer malarchy ☺

                1 Reply Last reply Reply Quote 0
                • L
                  LeeC
                  last edited by LeeC

                  Typical!

                  So it turns out that in order for Logic X to recognise au plugins, the component actually needs to be installed in location 1. below:

                  1. Users>Computername>library>audio>plugins>components
                  2. library>audio>plugins>components

                  Does any know how to get Packages to create an installer to write to this location (1.)?

                  The issue I'm finding is that the Computername will vary depending on which machine it's installed on. So setting it as an absolute location is not on option.

                  Has anybody been down this road before using Whitebox Packages?

                  Hope this makes sense.

                  Thanks

                  ulrikU 1 Reply Last reply Reply Quote 0
                  • ulrikU
                    ulrik @LeeC
                    last edited by

                    @LeeC see this pictures, when on payload, click the + and you will be able to locate the user/library/audio/plugins
                    Skärmavbild 2019-10-30 kl. 21.21.02.png

                    Skärmavbild 2019-10-30 kl. 21.21.19.png
                    Skärmavbild 2019-10-30 kl. 21.21.36.png
                    Skärmavbild 2019-10-30 kl. 21.22.04.png

                    L 1 Reply Last reply Reply Quote 0
                    • L
                      LeeC @ulrik
                      last edited by LeeC

                      @ulrik Thanks for replying.

                      But from my understanding your picture below shows that the plugins will install directly into the /users folder and not into the user/name/library/audio/plugins folder.....

                      alt text

                      Appreciate your response though

                      ulrikU 3 Replies Last reply Reply Quote 0
                      • ulrikU
                        ulrik @LeeC
                        last edited by

                        @LeeC that picture shows only when you start the process, when in payload I load the plugins from /Users/myName/Library/Audio/PlugIns/ and components & VST3

                        1 Reply Last reply Reply Quote 0
                        • ulrikU
                          ulrik @LeeC
                          last edited by

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • ulrikU
                            ulrik @LeeC
                            last edited by

                            @LeeC I'm sorry, I did not read your first question so well, I see now that you want to install the plugins to Library/Audio/PlugIns/etc...
                            stupid me, I'll delete the latest post...😔

                            L 1 Reply Last reply Reply Quote 0
                            • A
                              arminh
                              last edited by

                              In oner installer you can't install in system file and home user folder. To do this I created post install script which move content from Library/Aplication Support/PLUGIN NAME to ~/Library/Aplication Support/PLUGIN NAME.

                              L 1 Reply Last reply Reply Quote 0
                              • L
                                LeeC @ulrik
                                last edited by

                                @ulrik No worries. Thanks for trying though! ☺

                                1 Reply Last reply Reply Quote 1
                                • L
                                  LeeC @arminh
                                  last edited by LeeC

                                  @arminh This sounds interesting...

                                  So what did you use to create a post install script?

                                  I think this is exactly what needs to be done ☺

                                  A 1 Reply Last reply Reply Quote 0
                                  • A
                                    arminh @LeeC
                                    last edited by

                                    @LeeC I just edited code which are on white box page

                                    First create file post-installation.sh and use it as main post installation script

                                    #!/bin/sh
                                    
                                    foundPackage=`/usr/sbin/pkgutil --volume "$3" --pkgs=$INSTALL_PKG_SESSION_ID`
                                    
                                    ## For Mac OS X 10.5 ##
                                    
                                    if [ -z "$SHARED_INSTALLER_TEMP" ]; then
                                    
                                    	if [ -f $INSTALLER_TEMP/.install.$INSTALL_PKG_SESSION_ID ]; then
                                    
                                    		foundPackage=""
                                    
                                    		/bin/rm $INSTALLER_TEMP/.install.$INSTALL_PKG_SESSION_ID
                                    
                                    	fi
                                    fi
                                    
                                    ## End For Mac OS X 10.5 ##
                                    
                                    if test -n "$foundPackage"; then
                                    
                                    	# It's an upgrade
                                    
                                    	/bin/sh ./postupgrade.sh
                                    
                                    else
                                    
                                    	# It's a clean install
                                    
                                    	/bin/sh ./postinstall.sh
                                    
                                    fi
                                    
                                    exit 0
                                    

                                    Next, create second script called postinstall.sh with this content

                                    #!/bin/sh
                                    
                                    
                                    cd ~/Library/Application\ Support/
                                    mkdir COMPANY_NAME
                                    cd ~/Library/Application\ Support/YOUR_COMPANY NAME
                                    mkdir PRODUCT_NAME
                                    sudo mv /Library/Application\ Support/COMPANY_NAME/PRODUCT_NAME/* ~/Library/Application\ Support/COMPANY_NAME/PRODUCT_NAME/
                                    cd /Library/Application\ Support/
                                    sudo rm -rf COMPANY_NAME
                                    
                                    
                                    exit 0
                                    
                                    

                                    If you have space in your Company or product name you must write this like this

                                    My\ Company = My Company
                                    My\ Product = My Product
                                    
                                    L 1 Reply Last reply Reply Quote 1
                                    • L
                                      LeeC @arminh
                                      last edited by

                                      @arminh Great info thanks.
                                      I'll check it out ☺

                                      1 Reply Last reply Reply Quote 0
                                      • L
                                        LeeC
                                        last edited by

                                        Found a way to access the Users>Computername>library>audio>plugins using Whitebox for anyone that's following this.

                                        Check this out:

                                        Link Preview Image
                                        WhiteBox - Packages - Q&A_03

                                        favicon

                                        (s.sudre.free.fr)

                                        Instructions
                                        Let's say you want to install a file in ~/Library/Application Support. Here's how to do that:

                                        Open Packages
                                        Create a new Distribution project.
                                        Choose Packages > Preferences…
                                        Click Advanced.
                                        Check Show Advanced User Options and close the Preferences window.
                                        Select Project in the source list.
                                        Click the Settings tab.
                                        Scroll to the bottom of the Advanced Options list.
                                        Check current user's home.
                                        Click the Requirements & Resources tab.
                                        Check Install on startup disk only.
                                        Select the package in the source list.
                                        Click the Settings tab.
                                        Uncheck Require admin password for installation.
                                        Click the Payload tab.
                                        Select the /Library/Application Support row in the Contents list.
                                        Click +.
                                        Select the file you want to install and click Add…
                                        Select the Reference Style and click Add.
                                        You can now build your package and test it.

                                        1 Reply Last reply Reply Quote 1
                                        • Dan KorneffD
                                          Dan Korneff
                                          last edited by

                                          @LeeC I tried the instructions, and it doesn't install to the ~/Library 🤷
                                          The link even has a Sample Project.... I opened and ran. Still installed to /Library

                                          Dan Korneff - Producer / Mixer / Audio Nerd

                                          L 2 Replies Last reply Reply Quote 0
                                          • L
                                            LeeC @Dan Korneff
                                            last edited by

                                            @dustbro I think I tried that it sample project and it worked ok.
                                            Let me take another look.....

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

                                            23

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            103.0k

                                            Posts