Sample Installer Script Issues with WhiteBox Packages
-
Hi all,
We've been using a simple install script with our samples installer to automate the process for creating the LinkOS file so the user doesn't need to reselect the location again when opening the plugin. It works like 99% of the time, but very occasionally will fail on certain Macs, so we're looking for a better solution.
Does anyone have a working script for this? Here's what we're currently using:
#!/bin/sh # Write sample location selected by user to LinkOSX for HISE # First, remove LinkOSX file if it's already there instrumentname="CUBE" devname="Lunacy Audio" 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}/Lunacy Audio/CUBE/Samples" > "$destfile"