File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class Program
2525 static void Main ( string [ ] args )
2626 {
2727 bool quit = false ;
28- if ( args . Length > 0 && args [ 1 ] . Equals ( "/quit" ) )
28+ if ( args . Length > 0 && args [ 0 ] . Equals ( "/quit" ) )
2929 {
3030 quit = true ;
3131 }
@@ -56,8 +56,14 @@ static void Main(string[] args)
5656 return ;
5757 }
5858 WriteColor ( @"[//--Install------------------------------------------------------]" , ConsoleColor . DarkGreen ) ;
59- WriteColor ( $ "[//] Download folder { FOLDERNAME } is exists...", ConsoleColor . DarkGreen ) ;
60- Directory . Delete ( FOLDERNAME , true ) ;
59+ if ( Directory . Exists ( FOLDERNAME ) )
60+ {
61+ WriteColor ( $ "[//] Download folder { FOLDERNAME } is exists...", ConsoleColor . DarkGreen ) ;
62+ Directory . Delete ( FOLDERNAME , true ) ;
63+ }
64+
65+ WriteColor ( $ "[//] Create folder { FOLDERNAME } ...", ConsoleColor . DarkGreen ) ;
66+ Directory . CreateDirectory ( FOLDERNAME ) ;
6167
6268 WriteColor ( $ "[//] Unzip { FILENAME } to{ FOLDERNAME } ...", ConsoleColor . DarkGreen ) ;
6369 ZipFile . ExtractToDirectory ( FILENAME , FOLDERNAME ) ;
Original file line number Diff line number Diff line change 1212 <Company >First Coder</Company >
1313 <AssemblyVersion >1.0.0.0</AssemblyVersion >
1414 <FileVersion >1.0.0.0</FileVersion >
15+ <ApplicationIcon >steam.ico</ApplicationIcon >
1516 </PropertyGroup >
1617
1718 <ItemGroup >
2021 <PackageReference Include =" Microsoft.Extensions.Logging.Console" Version =" 5.0.0" />
2122 </ItemGroup >
2223
24+ <ItemGroup >
25+ <None Include =" ..\LICENCE.txt" >
26+ <Pack >True</Pack >
27+ <PackagePath ></PackagePath >
28+ </None >
29+ </ItemGroup >
30+
2331</Project >
You can’t perform that action at this time.
0 commit comments