-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathinstall.sh
22 lines (19 loc) · 956 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
set dlPath=pwd
set harmonyPrefsDir=~/Library/Preferences/Toon Boom Animation/
echo -------------------------------------------------------------------
echo -- Starting install of openHarmony open source scripting library --
echo -------------------------------------------------------------------
echo OpenHarmony will be installed to the folder :
echo $dlpath
echo Do not delete the contents of this folder.
REM Check Harmony Versions and make a list
for /d %%D in ("%harmonyPrefsDir%\*Harmony*") do (
set harmonyVersionDir=%%~fD
for /d %%V in ("!harmonyVersionDir!\*-layouts*") do (
set "folderName=%%~nD"
set "versionName=%%~nV"
set "harmonyFolder=!folderName:~-7!"
set "harmonyVersions=!versionName:~0,2!"
echo Found Toonboom Harmony !harmonyFolder! !harmonyVersions! - installing openHarmony for this version.
set "installDir=!harmonyPrefsDir!\Toon Boom Harmony !harmonyFolder!\!harmonyVersions!00-scripts\"