Skip to content

Commit f6032a7

Browse files
committed
Releasebuild 1.0.0.0
1 parent 14401a5 commit f6032a7

3 files changed

Lines changed: 17 additions & 3 deletions

File tree

SteamInstaller/Program.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff 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);

SteamInstaller/SteamInstaller.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
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>
@@ -20,4 +21,11 @@
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>

SteamInstaller/steam.ico

250 KB
Binary file not shown.

0 commit comments

Comments
 (0)