Skip to content

Commit

Permalink
Tidy up program
Browse files Browse the repository at this point in the history
  • Loading branch information
Anime4000 committed Oct 8, 2015
1 parent f5f84f5 commit 256807d
Show file tree
Hide file tree
Showing 12 changed files with 128 additions and 37 deletions.
15 changes: 14 additions & 1 deletion ifme/Global.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,25 @@ public static string VersionRelease
get { return Application.ProductVersion; }
}

public static string Type
public static string VersionCompiled
{
get { return $"ifme_{Version}_{(OS.Is64bit ? "x64" : "x86")}-{(OS.IsWindows ? "windows" : "linux")}-{ReleaseType}"; }
}

public static string ReleaseType
{
#if DEBUG
#if !STEAM
get { return "experimental"; }
#else
get { return "steam-experimental"; }
#endif
#elif RELEASE
#if !STEAM
get { return "stable"; }
#else
get { return "steam-stable"; }
#endif
#endif
}

Expand Down
4 changes: 2 additions & 2 deletions ifme/MediaEncoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ public static void Mux(Queue item)
{
fileout += ".mkv";

string tags = string.Format(Properties.Resources.Tags, Global.App.NameFull, "Nemu System 5.1.1");
string cmdvideo = null;
string tags = string.Format(Properties.Resources.Tags, Global.App.NameFull, Global.App.VersionCompiled);
string cmdvideo = null;
string cmdaudio = null;
string cmdsubs = null;
string cmdattach = null;
Expand Down
5 changes: 3 additions & 2 deletions ifme/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ static void Head()
{
ForegroundColor = ConsoleColor.Yellow;
WriteLine(Global.App.NameFull);
WriteLine($"Compiled release: {Global.App.Version}-{(OS.Is64bit ? "x64" : "x86")}-{Global.App.Type}\n");
WriteLine("Release: " + Global.App.VersionCompiled);
WriteLine();
ResetColor();
}

Expand All @@ -75,8 +76,8 @@ static void DisplayHelp()
WriteLine();
WriteLine("Option GUI & CLI are cannot combine together, CLI will implies GUI.");
WriteLine();
WriteLine("Report bugs to: <https://github.com/Anime4000/IFME/issues>");
WriteLine("IFME home page: <https://x265.github.io/>");
WriteLine("Report bugs to: <https://github.com/Anime4000/IFME/issues>");
WriteLine("IFME fb page : <https://fb.com/internetfriendlymediaencoder/>");
}

Expand Down
10 changes: 10 additions & 0 deletions ifme/Properties/Resources.Designer.cs

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

3 changes: 3 additions & 0 deletions ifme/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -242,4 +242,7 @@
<data name="CodeName" xml:space="preserve">
<value>FLUORITE DIARY</value>
</data>
<data name="donate" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\donate.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>
Binary file added ifme/Resources/donate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ifme/frmAbout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private void frmAbout_Load(object sender, EventArgs e)
}

lblAppName.Text = Global.App.Name;
lblAppBuild.Text = $"{Global.App.Type} {Global.App.VersionRelease} ({Global.App.Version} x64 '{Global.App.CodeName}')";
lblAppBuild.Text = $"{Global.App.ReleaseType} {Global.App.VersionRelease} ({Global.App.Version} x64 '{Global.App.CodeName}')";

lblTitleA.Text = string.Format(lblTitleA.Text, Global.App.Name);

Expand Down
67 changes: 47 additions & 20 deletions ifme/frmMain.Designer.cs

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

Loading

0 comments on commit 256807d

Please sign in to comment.