@@ -59,6 +59,9 @@ public static void DownloadMain()
5959 case 1 : // Install SLN
6060 slnbuilder ( ) ;
6161 break ;
62+ case 2 : // Install IDE
63+ ez_ide ( ) ;
64+ break ;
6265 }
6366 }
6467
@@ -144,6 +147,33 @@ void slnbuilder() // Install Sln Builder
144147
145148 Program . CreateShortcut ( "SLN Builder" , Path . Combine ( decompressDirectory , "EZ_SLN_Builder.exe" ) ) ;
146149 }
150+
151+ void ez_ide ( ) // Install IDE
152+ {
153+ Working ( $ "\n \n Installing SLN Builder From { githubRepoUrl } .git... This may take a second.") ;
154+
155+ Directory . CreateDirectory ( tempDirectory ) ;
156+
157+ string installFile = $ "EZ_IDE_{ releaseTitle } .zip";
158+
159+ string downloadUrl = $ "{ githubRepoUrl } /releases/download/{ releaseTag } /{ installFile } ";
160+
161+ string decompressDirectory = Path . Combine ( filepath , $ "EZ_IDE { releaseTitle } ") ;
162+
163+ WebInstaller ( $ "{ installFile } .zip", downloadUrl , tempDirectory , true ) ;
164+
165+ string [ ] d = Directory . GetFiles ( Path . Combine ( tempDirectory , $ "EZ_IDE") ) ;
166+ Directory . CreateDirectory ( decompressDirectory ) ;
167+ for ( int i = 0 ; i < d . Length ; i ++ )
168+ {
169+ FileInfo info = new FileInfo ( d [ i ] ) ;
170+ string t_decompress = Path . Combine ( decompressDirectory , info . Name ) ;
171+ File . Move ( d [ i ] , t_decompress , true ) ;
172+ }
173+ Directory . Delete ( tempDirectory , true ) ;
174+
175+ Program . CreateShortcut ( "EZCode IDE" , Path . Combine ( decompressDirectory , "EZ_IDE.exe" ) ) ;
176+ }
147177 }
148178 catch ( Exception ex )
149179 {
@@ -161,7 +191,8 @@ static Option[] Options()
161191 List < Option > options = new List < Option > ( )
162192 {
163193 new Option ( "EZCode Core and Player" , 0 , true ) ,
164- new Option ( "EZCode SLN (Microsoft Visual Studio Project) Builder" , 1 , false )
194+ new Option ( "EZ_IDE (Development platform for EZCode)" , 2 , true ) ,
195+ new Option ( "EZCode SLN (Microsoft Visual Studio Project) Builder" , 1 , false ) ,
165196 } ;
166197
167198 int index = 0 ;
0 commit comments