-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port TFruityPlugHost PlugMsg methods (#83)
- update install script for Windows
- Loading branch information
Showing
7 changed files
with
95 additions
and
40 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,43 @@ | ||
:: Usage: | ||
:: install.win.bat name destination_name [plugins_dir] | ||
:: install.win.bat name destination_name type_of_plugin [plugins_dir] | ||
|
||
@echo off | ||
|
||
set name=%1 | ||
set dest_name=%2 | ||
set plugins_dir="C:\Program Files\Image-Line\FL Studio 20\Plugins\Fruity" | ||
set args_count=0 | ||
set flag=false | ||
set incorrect_args_count=false | ||
set type_flag=false | ||
|
||
for %%x in (%*) do Set /A args_count+=1 | ||
|
||
if %args_count% lss 2 set flag=true | ||
if %args_count% gtr 3 set flag=true | ||
if "%flag%"=="true" ( | ||
echo "Usage: install.win.bat name destination_name [plugins_dir]" | ||
if %args_count% lss 3 set incorrect_args_count=true | ||
if %args_count% gtr 4 set incorrect_args_count=true | ||
if "%incorrect_args_count%"=="true" ( | ||
echo "Usage: install.win.bat name destination_name type_of_plugin [plugins_dir]" | ||
exit /B 87 | ||
) | ||
|
||
if %args_count%==3 ( | ||
set plugins_dir=%3 | ||
if "%3"=="-e" ( | ||
set type=Effects | ||
set type_flag=true | ||
) | ||
|
||
if "%3"=="-g" ( | ||
set type=Generators | ||
set type_flag=true | ||
) | ||
|
||
if "%type_flag%"=="false" ( | ||
echo "please type '-e' or '-g'" | ||
exit /B 87 | ||
) | ||
|
||
if %args_count%==4 ( | ||
set plugins_dir=%4 | ||
) | ||
|
||
rd /s /q %plugins_dir%\Effects\%dest_name% | ||
md %plugins_dir%\Effects\%dest_name% | ||
move target\release\examples\%name%.dll %plugins_dir%\Effects\%dest_name%\%dest_name%_x64.dll | ||
rd /s /q %plugins_dir%\%type%\%dest_name% | ||
md %plugins_dir%\%type%\%dest_name% | ||
move target\release\examples\%name%.dll %plugins_dir%\%type%\%dest_name%\%dest_name%_x64.dll |
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
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
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
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
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