Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update install-linux.sh to match the new plugin build procedure #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
36 changes: 33 additions & 3 deletions install-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,18 @@ rm -rf /usr/local/lib64/lv2/ZynAddSubFX.lv2
rm -rf /usr/local/lib/lv2/ZynAddSubFX.lv2presets
rm -rf /usr/local/lib64/lv2/ZynAddSubFX.lv2presets

echo "...ZynAddSubFX vst3"
rm -rf /usr/lib/vst3/ZynAddSubFX.vst3
rm -rf /usr/lib64/vst3/ZynAddSubFX.vst3
rm -rf /usr/local/lib/vst3/ZynAddSubFX.vst3
rm -rf /usr/local/lib64/vst3/ZynAddSubFX.vst3

echo "...ZynAddSubFX clap"
rm -rf /usr/lib/clap/ZynAddSubFX.clap
rm -rf /usr/lib64/clap/ZynAddSubFX.clap
rm -rf /usr/local/lib/clap/ZynAddSubFX.clap
rm -rf /usr/local/lib64/clap/ZynAddSubFX.clap

echo "Installing Zyn Fusion"
mkdir -p /opt/zyn-fusion/
cp -a ./* /opt/zyn-fusion
Expand All @@ -85,10 +97,10 @@ ln -s /opt/zyn-fusion/banks /usr/share/zynaddsubfx/banks
echo "...vst version"
if [ -d "/usr/lib64/vst/" ]
then
ln -s /opt/zyn-fusion/ZynAddSubFX.so /usr/lib64/vst/
ln -s /opt/zyn-fusion/ZynAddSubFX-vst2.so /usr/lib64/vst/ZynAddSubFX.so
else
mkdir -p /usr/lib/vst
ln -s /opt/zyn-fusion/ZynAddSubFX.so /usr/lib/vst/
ln -s /opt/zyn-fusion/ZynAddSubFX-vst2.so /usr/lib/vst/ZynAddSubFX.so
fi

echo "...lv2 version"
Expand All @@ -102,6 +114,24 @@ else
ln -s /opt/zyn-fusion/ZynAddSubFX.lv2presets /usr/lib/lv2/
fi

echo "...vst3 version"
if [ -d "/usr/lib64/vst3/" ]
then
ln -s /opt/zyn-fusion/ZynAddSubFX.vst3 /usr/lib64/vst3/
else
mkdir -p /usr/lib/vst3
ln -s /opt/zyn-fusion/ZynAddSubFX.vst3 /usr/lib/vst3/
fi

echo "...clap version"
if [ -d "/usr/lib64/clap/" ]
then
ln -s /opt/zyn-fusion/ZynAddSubFX.clap /usr/lib64/clap/
else
mkdir -p /usr/lib/clap
ln -s /opt/zyn-fusion/ZynAddSubFX.clap /usr/lib/clap/
fi

echo "...bash completion"
bashcompdir=$(pkg-config --variable=completionsdir bash-completion)
if [ "$bashcompdir" ]
Expand All @@ -111,5 +141,5 @@ fi

echo ""
echo "Thank you for supporting Zyn-Fusion"
echo "You can now use the 3.0.3 release via a LV2/VST plugin host or"
echo "You can now use the 3.0.3 release via a LV2/VST/VST3/CLAP plugin host or"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self, I really have to remember to update this version number :p The rest of the changes look reasonable to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to have a function for fetching version number.

echo "by running the standalone via 'zynaddsubfx'"