mirror of
https://github.com/WB3000/nusdownloader.git
synced 2024-11-17 07:09:21 +01:00
Made changes for build/release configuration, including notes in-program.
This commit is contained in:
parent
692bd3963b
commit
1c6ebd6a6d
@ -43,11 +43,11 @@ namespace NUS_Downloader
|
|||||||
{
|
{
|
||||||
private readonly string CURRENT_DIR = Directory.GetCurrentDirectory();
|
private readonly string CURRENT_DIR = Directory.GetCurrentDirectory();
|
||||||
|
|
||||||
// TODO: Always remember to change version!
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
private static string svnversion = "$Rev$";
|
private static string svnversion = "$Rev$";
|
||||||
private string version = String.Format("SVN {0}", ((int.Parse(svnversion.Replace("$Rev$","")))+1));
|
private static string version = String.Format("SVN r{0}", ((int.Parse(svnversion.Replace("$"+"R"+"e"+"v"+": ","").Replace(" "+"$","")))+1));
|
||||||
#else
|
#else
|
||||||
|
// TODO: Always remember to change version!
|
||||||
private string version = "v2.0 Beta";
|
private string version = "v2.0 Beta";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -92,6 +92,13 @@ namespace NUS_Downloader
|
|||||||
{
|
{
|
||||||
this.Font = new System.Drawing.Font("Tahoma", 8);
|
this.Font = new System.Drawing.Font("Tahoma", 8);
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
if (version.StartsWith("SVN"))
|
||||||
|
{
|
||||||
|
WriteStatus("!!!!! THIS IS A DEBUG BUILD FROM SVN !!!!!");
|
||||||
|
WriteStatus("Features CAN and WILL be broken in this build");
|
||||||
|
WriteStatus("REMEMBER TO CHANGE TO THE RELEASE CONFIGURATION AND CHANGE VERSION NUMBER BEFORE BUILDING!");
|
||||||
|
WriteStatus("\n\n\n");
|
||||||
|
}
|
||||||
this.MaximumSize = this.MinimumSize = this.Size; // Lock size down PATCHOW :D
|
this.MaximumSize = this.MinimumSize = this.Size; // Lock size down PATCHOW :D
|
||||||
if (Type.GetType("Mono.Runtime") != null)
|
if (Type.GetType("Mono.Runtime") != null)
|
||||||
{
|
{
|
||||||
@ -2205,6 +2212,10 @@ namespace NUS_Downloader
|
|||||||
statusbox.Text = "";
|
statusbox.Text = "";
|
||||||
WriteStatus("NUS Downloader (NUSD)");
|
WriteStatus("NUS Downloader (NUSD)");
|
||||||
WriteStatus("You are running version: " + version);
|
WriteStatus("You are running version: " + version);
|
||||||
|
if (version.StartsWith("SVN"))
|
||||||
|
{
|
||||||
|
WriteStatus("THIS IS A DIRECT FROM SVN BUILD! DO NOT REPORT BROKEN FEATURES!");
|
||||||
|
}
|
||||||
WriteStatus("This application created by WB3000");
|
WriteStatus("This application created by WB3000");
|
||||||
WriteStatus("Various sections contributed by lukegb");
|
WriteStatus("Various sections contributed by lukegb");
|
||||||
WriteStatus("");
|
WriteStatus("");
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user