Last active
July 4, 2024 17:24
-
-
Save jarkkojs/6924a771d90d02b7fe0e848e98f43689 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# Copyright (c) 2024 Jarkko Sakkinen <jarkko.sakkinen@iki.fi> | |
# An idiomatic way to install a U-he plugin with only CLAP and VST plugins. | |
PKG=$1 | |
PKG_XML="temp-$PKG.xml" | |
installer \ | |
-showChoiceChangesXML -pkg $PKG -target / | \ | |
xmlstarlet edit --update "//array//dict[string[contains(text(), '.au')]]//integer" --value 0 | \ | |
xmlstarlet edit --update "//array//dict[string[contains(text(), '.aax')]]//integer" --value 0 | \ | |
xmlstarlet edit --update "//array//dict[string[contains(text(), '.vst')]]//integer" --value 0 | \ | |
xmlstarlet edit --update "//array//dict[string[contains(text(), '.vst3')]]//integer" --value 1 > \ | |
"$PKG_XML.xml" | |
sudo installer -applyChoiceChangesXML "$PKG_XML" -pkg -target / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment