Package Fails gives user an error
-
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 -
@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" -
@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.
-
@Oriah-Beats This one
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. -
@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