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.8k 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.
    • 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
              • L
                LeeC @Dan Korneff
                last edited by

                @dustbro Yep just tried the sample project and it worked.

                Installed a 'payload_file.txt' file to the ~/Library/Application Support/ location.

                I'll have a play about but not entirely sure why you're not seeing it your end :(

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

                  BTW. In white box installer you can only install in one location. You must choose whether you want to install on /Library on user home ~/Library You can't install part in normal library and second part on user folder. Only one option which I figure out is post install scrip which install everything in normal Library and then copy it to user home

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

                    I guess at the end of the day, VST/AU/AAX plugin folders exist in /Library, so I removed my concern for needing to install to ~/Library 👍 👍

                    Dan Korneff - Producer / Mixer / Audio Nerd

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

                      Hey guys,
                      I need your help figuring out a simple install package for a plugin on MAC.
                      I have an FX plugin that contains audio files that are too large to embed, so the resources file will need to be added to an installer. Shouldn't be an issue.

                      Not a problem with PC. I can install the plugins to their proper folders, as well as deposit my AudioResources.dat file to the User AppData folder. Yay!

                      My dilemma is with MAC. Using Packages, I can create a Distribution package that can install the AudioResources.dat file to the ~/Library, but if I add my plugin raw packages to this Distribution package, all of the files get installed to the ~/Library folder.
                      I could just create 2 installers... one for the ~/Library and another for /Library, but I feel like there's a better way to do it.

                      What have you done in the past?

                      Dan Korneff - Producer / Mixer / Audio Nerd

                      ustkU Adam_GA 2 Replies Last reply Reply Quote 0
                      • ustkU
                        ustk @Dan Korneff
                        last edited by

                        @dustbro I'm not sure I understand well but if you create a distribution project with Packages, you can add as many packages as you want with their own payload and destination... Each package within a distribution is unique and different from the others, so I don't see where you have an issue with the destination 🤔

                        Can't help pressing F5 in the forum...

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

                          @ustk A distribution package can only deliver files to EITHER ~/Library or /Library at one time. Not both :(
                          From their website

                          You can not install items both in the current user's home directory and outside it. 
                          

                          Dan Korneff - Producer / Mixer / Audio Nerd

                          ustkU 1 Reply Last reply Reply Quote 1
                          • ustkU
                            ustk @Dan Korneff
                            last edited by

                            @dustbro Doh! Sad news...

                            Can't help pressing F5 in the forum...

                            1 Reply Last reply Reply Quote 0
                            • NatanN
                              Natan
                              last edited by

                              Guys, I Need Help With Destination Folder.
                              There Is No Choice To Select Components Folder
                              /Library/Audio/Plug-Ins/Components

                              Can Any One Supply A Few Screens Shots How To Build A Installer
                              Thanks

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

                                @Natanr
                                Standing on "Packages" select "Payload", under Library you'll find the way to the plugins, right click on "Components" and chose "Add files..."
                                then you will be prompted to chose the plugins you want to be embedded in you installer.
                                Skärmavbild 2020-01-16 kl. 21.22.17.png
                                Skärmavbild 2020-01-16 kl. 21.22.58.png
                                Skärmavbild 2020-01-16 kl. 21.23.16.png

                                Hise Develop branch
                                MacOs 15.3.1, Xcode 16.2
                                http://musikboden.se

                                1 Reply Last reply Reply Quote 0
                                • NatanN
                                  Natan
                                  last edited by

                                  @ulrik
                                  Thank You Sir
                                  But I Don't See Any Audio Folders In Library.
                                  I Already Read The Juce Tutorial, But Nothing Get Copied In What I Created With Hierarchy > New Folder

                                  1 Reply Last reply Reply Quote 0
                                  • NatanN
                                    Natan
                                    last edited by

                                    Screen Shot 2020-01-17 at 12.01.41 AM.png
                                    This Is How My Folders Look Like

                                    1 Reply Last reply Reply Quote 0
                                    • NatanN
                                      Natan
                                      last edited by

                                      Nothing Copied Into The Components Folder :(

                                      1 Reply Last reply Reply Quote 0
                                      • NatanN
                                        Natan
                                        last edited by Natan

                                        Gloryyy :)

                                        Just Ticked The Current User's Home Bla Bla And Changed The Format To Bundle Instead Flat :)

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

                                          @Natanr I'm glad it worked! :)

                                          Hise Develop branch
                                          MacOs 15.3.1, Xcode 16.2
                                          http://musikboden.se

                                          1 Reply Last reply Reply Quote 1
                                          • Adam_GA
                                            Adam_G @Dan Korneff
                                            last edited by

                                            bump. hey @dustbro did you ever end up with a solution for this?

                                            d.healeyD Dan KorneffD 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            28

                                            Online

                                            1.8k

                                            Users

                                            12.0k

                                            Topics

                                            104.2k

                                            Posts