HISE Logo Forum
    • Categories
    • Register
    • Login

    Package Fails gives user an error

    Scheduled Pinned Locked Moved General Questions
    5 Posts 2 Posters 47 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.
    • O
      Oriah Beats
      last edited by

      Hey everyone,

      I’m running into an issue with my macOS installer created using Packages, and I’m hoping someone here might have experience with this workflow.

      My installer places the plugin files correctly into the standard system directories:
      VST → /Library/Audio/Plug-Ins/VST/
      AU (Component) → /Library/Audio/Plug-Ins/Components/
      VST3 → /Library/Audio/Plug-Ins/VST3/
      It also installs the sample content to:
      /Library/Application Support/Company/Instrumentname/
      After installation, I run a post-install script that is supposed to move the samples into the User Library, for example:
      ~/Library/Application Support/Company/Instrumentname//

      The problem is:
      This works for some machines but fails on others. How are I best fix this

      O d.healeyD 2 Replies Last reply Reply Quote 0
      • O
        Oriah Beats @Oriah Beats
        last edited by

        @Oriah-Beats this is the post install Script

        #!/bin/sh
        # Write sample location selected by user to LinkOSX for HISE
        
        # First, remove LinkOSX file if it's already there
        instrumentname="instrumentname"
        devname="devname"
        
        mv /Library/Application\ Support/Riot ~/Library/Application\ Support/
        
        FILE="$HOME/Library/Application Support/${devname}/${instrumentname}/LinkOSX"
        if test -n "$FILE"; then
        		rm -R "$HOME/Library/Application Support/${devname}/${instrumentname}/LinkOSX"
        fi
        
        # Second, use the environment variable from WhiteBox Packages to write the destination to a file
        destfile=/Users/${USER}/Library/Application\ Support/${devname}/${instrumentname}/LinkOSX
        printf "${DSTROOT}/Library/Application Support/${devname}/${instrumentname}/Samples" > "$destfile"
        
        d.healeyD 1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey @Oriah Beats
          last edited by

          @Oriah-Beats said in Package Fails gives user an error:

          It also installs the sample content to:
          /Library/Application Support/Company/Instrumentname/
          After installation, I run a post-install script that is supposed to move the samples into the User Library, for example:
          ~/Library/Application Support/Company/Instrumentname//

          This shouldn't be necessary. Check the video on my channel about installing to system and user folders.

          Free HISE Bootcamp Full Course for beginners.
          YouTube Channel - Public HISE tutorials
          My Patreon - HISE tutorials

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

            @Oriah-Beats This one

            https://youtu.be/XNcSrUsgaZQ

            Although now I think about it, you shouldn't be putting samples in ~/Library/Application Support/Company/Instrumentname/ That should be for data files. You should let the user choose where they want to install the samples.

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

            O 1 Reply Last reply Reply Quote 0
            • O
              Oriah Beats @d.healey
              last edited by

              @d-healey I followed this method . Everything is working on my end except for one thing: the installer always shows 0 KB for the size of my data package. The samples are over 2GB but appears as 0 KB on the installer

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

              41

              Online

              2.1k

              Users

              12.9k

              Topics

              112.2k

              Posts