Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix repair #1388

Merged
merged 1 commit into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public IndexedZiPatchIndex(BinaryReader reader, bool disposeReader = true)
for (int i = 0, readIndex = reader.ReadInt32(); i < readIndex; i++)
this.sourceFiles.Add(reader.ReadString());
foreach (var _ in this.sourceFiles)
this.sourceFileLastPtr.Add(reader.ReadInt32());
this.sourceFileLastPtr.Add(reader.ReadInt64());

for (int i = 0, readIndex = reader.ReadInt32(); i < readIndex; i++)
this.targetFiles.Add(new IndexedZiPatchTargetFile(reader, false));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public IndexedZiPatchIndexRemoteInstaller(string workerExecutablePath, bool asAd
this.workerProcess.StartInfo.UseShellExecute = true;
this.workerProcess.StartInfo.Verb = asAdmin ? "runas" : "open";
this.workerProcess.StartInfo.Arguments = $"index-rpc {Process.GetCurrentProcess().Id} {rpcChannelName}";
#if !DEBUG
this.workerProcess.StartInfo.CreateNoWindow = true;
this.workerProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
#endif
this.workerProcess.Start();
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<PropertyGroup>
<OutputType>WinExe</OutputType>
<OutputType>Exe</OutputType>
<TargetFramework>net472</TargetFramework>
<UseWPF>true</UseWPF>
<LangVersion>latest</LangVersion>
Expand Down