Skip to content

Commit

Permalink
Bump version to 0.2, add version info to PkgTool and PkgEditor.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxton committed May 16, 2020
1 parent d781b7b commit 72370ca
Show file tree
Hide file tree
Showing 8 changed files with 85 additions and 10 deletions.
3 changes: 3 additions & 0 deletions LibOrbisPkg.Core/LibOrbisPkg.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<Platforms>AnyCPU</Platforms>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DefineConstants>CORE</DefineConstants>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down Expand Up @@ -43,6 +44,7 @@
<Compile Include="..\LibOrbisPkg\PKG\PkgWriter.cs" Link="PKG\PkgWriter.cs" />
<Compile Include="..\LibOrbisPkg\PlayGo\ChunkDat.cs" Link="PlayGo\ChunkDat.cs" />
<Compile Include="..\LibOrbisPkg\PlayGo\Manifest.cs" Link="PlayGo\Manifest.cs" />
<Compile Include="..\LibOrbisPkg\Properties\AssemblyInfo.cs" Link="Properties\AssemblyInfo.cs" />
<Compile Include="..\LibOrbisPkg\Rif\LicenseDat.cs" Link="Rif\LicenseDat.cs" />
<Compile Include="..\LibOrbisPkg\Rif\LicenseInfo.cs" Link="Rif\LicenseInfo.cs" />
<Compile Include="..\LibOrbisPkg\SFO\ParamSfo.cs" Link="SFO\ParamSfo.cs" />
Expand All @@ -60,6 +62,7 @@
</ItemGroup>

<ItemGroup>
<Folder Include="Properties\" />
<Folder Include="PlayGo\" />
<Folder Include="Util\" />
<Folder Include="Rif\" />
Expand Down
6 changes: 3 additions & 3 deletions LibOrbisPkg/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LibOrbisPkg")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyCopyright("Copyright © 2018-2020 Maxton")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,5 +32,5 @@
// 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")]
[assembly: AssemblyVersion("0.2.0.0")]
[assembly: AssemblyFileVersion("0.2.0.0")]
40 changes: 39 additions & 1 deletion PkgEditor/MainWin.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions PkgEditor/MainWin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System.IO;
using LibOrbisPkg;
using System.Windows.Forms;
using System.Diagnostics;

namespace PkgEditor
{
Expand Down Expand Up @@ -263,5 +264,23 @@ private void cryptoDebuggerToolStripMenuItem_Click(object sender, EventArgs e)
{
OpenTab(new Views.CryptoDebug(), "Crypto Debugger");
}

private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
{
var assembly = System.Reflection.Assembly.GetExecutingAssembly();
var version = FileVersionInfo.GetVersionInfo(assembly.Location).FileVersion;
var libAssembly = System.Reflection.Assembly.GetAssembly(typeof(LibOrbisPkg.PKG.Pkg));
var libVersion = FileVersionInfo.GetVersionInfo(libAssembly.Location).FileVersion;
MessageBox.Show(this,
"PkgEditor (c) 2020 Maxton" + Environment.NewLine +
"LibOrbisPkg version "+ libVersion + Environment.NewLine +
"PkgEditor version " + version,
"About PkgEditor");
}

private void visitGitHubRepoToolStripMenuItem_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/maxton/LibOrbisPkg");
}
}
}
6 changes: 3 additions & 3 deletions PkgEditor/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("PkgEditor")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyCopyright("Copyright © 2018-2020 Maxton")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,5 +32,5 @@
// 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")]
[assembly: AssemblyVersion("0.2.0.0")]
[assembly: AssemblyFileVersion("0.2.0.0")]
15 changes: 15 additions & 0 deletions PkgTool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,19 @@ static void Main(string[] args)
new ParamSfo().Write(f);
}
}),
Verb.Create(
"version",
"Print the version and exit.",
new List<ArgDef>(),
_ => {
var assembly = System.Reflection.Assembly.GetExecutingAssembly();
var version = System.Diagnostics.FileVersionInfo.GetVersionInfo(assembly.Location).FileVersion;
var libAssembly = System.Reflection.Assembly.GetAssembly(typeof(Pkg));
var libVersion = System.Diagnostics.FileVersionInfo.GetVersionInfo(libAssembly.Location).FileVersion;
Console.WriteLine("PkgTool (c) 2020 Maxton");
Console.WriteLine("LibOrbisPkg version " + libVersion);
Console.WriteLine("PkgTool version " + version);
}),
};

private static void ExtractInParallel(PfsReader inner, string outPath, bool verbose)
Expand Down Expand Up @@ -582,6 +595,8 @@ public static Verb Create(string name, string helpText, List<ArgDef> args, Actio
}
public override string ToString()
{
if (Args == null || Args.Count == 0)
return Name;
var options = Args
.Select(x =>
x.Type == ArgType.Boolean ? $"[--{x.Name}]" :
Expand Down
4 changes: 2 additions & 2 deletions PkgTool/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// 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")]
[assembly: AssemblyVersion("0.2.0.0")]
[assembly: AssemblyFileVersion("0.2.0.0")]
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 0.1.{build}
version: 0.2.{build}


branches:
Expand Down

0 comments on commit 72370ca

Please sign in to comment.