Skip to content

Instantly share code, notes, and snippets.

@timsutton
Last active April 24, 2019 06:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save timsutton/0fbf631bc2670325aa9e5f12f5a73e26 to your computer and use it in GitHub Desktop.
Save timsutton/0fbf631bc2670325aa9e5f12f5a73e26 to your computer and use it in GitHub Desktop.
Repackage the Sibelius 7.5 sounds into a standard package
#!/bin/sh -eu
#
# Run the Sibelius 7.5 sounds installer, which will unpack sample data as well as some metadata, all into
# a 'Sibelius Sounds' directory. SOUNDS_SRC in this script points to this directory by default, but
# alternatively one could back up the Sibelius Sounds directory to a server and then change SOUNDS_SRC to
# that location.
#
# Note that 'Sibelius Sounds' is the top-level directory, and it contains another directory within with
# the same name (alongside 'Libraries').
#
# No additional configuration of Sibelius 8 seems to be necessary to make it aware of this sounds package.
VERSION=7.5
NAME=SibeliusSounds75
REV_DOMAIN=org.great.my
SOUNDS_SRC='/Library/Application Support/Avid/Sibelius Sounds'
rm -rf pkgroot && mkdir -p "pkgroot/Library/Application Support/Avid"
cp -Rv "$SOUNDS_SRC" "pkgroot/Library/Application Support/Avid"
chmod -R 755 "pkgroot/Library/Application Support/Avid/Sibelius Sounds"
pkgbuild \
--root pkgroot \
--version $VERSION \
--identifier "$REV_DOMAIN.$NAME" \
"$NAME-$VERSION.pkg"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment