Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
yibei333 committed Dec 5, 2024
1 parent 8027143 commit c4d7b22
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.0
1.1.1
2 changes: 1 addition & 1 deletion src/SingleExe.Tool/SingleExe.Tool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<Version>1.1.0</Version>
<Version>1.1.1</Version>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
<PackageReadmeFile>Nuget.md</PackageReadmeFile>
<AssemblyName>single-exe</AssemblyName>
Expand Down
7 changes: 5 additions & 2 deletions src/SingleExe/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ void StartProcess()
if (!string.IsNullOrWhiteSpace(args.Data)) Console.WriteLine($"error: {args.Data}");
};
ChildProcess = process;
process.Exited += (s, e) => Clean();
process.Exited += (s, e) =>
{
Clean();
};
process.Start();
process.BeginOutputReadLine();
process.BeginErrorReadLine();
Expand Down Expand Up @@ -158,7 +161,7 @@ bool IsOtherProcessExist()
catch (Exception ex)
{
Debug.WriteLine(ex.Message);
return true;
return false;
}
}
}

0 comments on commit c4d7b22

Please sign in to comment.