Skip to content

Commit

Permalink
Embed patch files v1.1.0
Browse files Browse the repository at this point in the history
Introduce QP app versioning dichotomy
  • Loading branch information
TiberiumFusion committed Oct 9, 2023
1 parent 32365fc commit 18d32f2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion QuickPatcher/BinaryResources.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static class BinaryResources
public static Stream GetPatchPayload()
{
string payloadResourcePath = "TiberiumFusion.FixedSteamFriendsUI.QuickPatcher.Resources."
+ "Patch.PatchPayload_v1.0.0-{9e2017aa-091c-423f-8ff3-37d340e97c35}.zip";
+ "Patch.PatchPayload_v1.1.0-{146983a4-25d3-43f6-b05d-7e1c0620758d}.zip";

return Assembly.GetExecutingAssembly().GetManifestResourceStream(payloadResourcePath);
}
Expand Down
11 changes: 9 additions & 2 deletions QuickPatcher/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,12 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

// Versioning dichotomy:
// - The QuickPatcher application's version goes in the File Version slot
// - The embedded patch files' version goes in the Product Version slot

[assembly: AssemblyVersion("1.1.0.0")] // QP
[assembly: AssemblyFileVersion("1.1.0.0")] // QP

[assembly: AssemblyInformationalVersion("1.1.0.0")] // embedded patch files
4 changes: 2 additions & 2 deletions QuickPatcher/QuickPatcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="..\Patch Files\build\PatchPayload_v1.0.0-{9e2017aa-091c-423f-8ff3-37d340e97c35}.zip">
<Link>Resources\Patch\PatchPayload_v1.0.0-{9e2017aa-091c-423f-8ff3-37d340e97c35}.zip</Link>
<EmbeddedResource Include="..\Patch Files\build\PatchPayload_v1.1.0-{146983a4-25d3-43f6-b05d-7e1c0620758d}.zip">
<Link>Resources\Patch\PatchPayload_v1.1.0-{146983a4-25d3-43f6-b05d-7e1c0620758d}.zip</Link>
</EmbeddedResource>
<None Include="app.config" />
<None Include="app.manifest" />
Expand Down

0 comments on commit 18d32f2

Please sign in to comment.