Skip to content

Commit

Permalink
Installer wrapper (#74) [TGSDeploy]
Browse files Browse the repository at this point in the history
* Add a version command

* Remove service update from commandline

* Ayy lmao

* Fix

* Final touches

* Last thing

* Can't break backwards compat I suppose

* Version bump to 3.0.85.0

* Final cleanup

* This time I swear

* VERY LAST FUCKING THING

* CANT STOP FUCKING UP THE UI

* AHHHH!!!!!

* Do not become like me kids
  • Loading branch information
Cyberboss authored Jun 23, 2017
1 parent 6b8caf2 commit 4f8a848
Show file tree
Hide file tree
Showing 23 changed files with 3,069 additions and 58 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,6 @@ You can clear all active test merges using `Reset to Origin Branch` in the `Repo

## CONTRIBUTING

* IF YOU MAKE ANY CHANGES TO THE CODE, BE SURE TO BUMP THE VERSION NUMBERS IN ALL 4 "AssemblyInfo.cs"s AND ON LINE 3 OF TGServiceInstaller/Product.wx
* IF YOU MAKE ANY CHANGES TO THE CODE, BE SURE TO BUMP THE VERSION NUMBERS IN ALL 5 "AssemblyInfo.cs"s AND ON LINE 3 OF TGServiceInstaller/Product.wx
* My recommendation is bump the revision number per test release, the minor version per PR, and the major version if you rewrite the whole thing.
* To have auto deployment to github releases work, put `[TGSDeploy]` somewhere in your pull request title
4 changes: 2 additions & 2 deletions TGCommandLine/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.0.84.0")]
[assembly: AssemblyFileVersion("3.0.84.0")]
[assembly: AssemblyVersion("3.0.85.0")]
[assembly: AssemblyFileVersion("3.0.85.0")]
33 changes: 1 addition & 32 deletions TGCommandLine/RootCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bool IsRealRoot()
public RootCommand()
{
if (IsRealRoot()) //stack overflows
Children = new Command[] { new UpdateCommand(), new TestmergeCommand(), new IRCCommand(), new RepoCommand(), new BYONDCommand(), new DMCommand(), new DDCommand(), new ConfigCommand(), new ChatCommand(), new ServiceUpdateCommand() };
Children = new Command[] { new UpdateCommand(), new TestmergeCommand(), new IRCCommand(), new RepoCommand(), new BYONDCommand(), new DMCommand(), new DDCommand(), new ConfigCommand(), new ChatCommand() };
}
public override ExitCode Run(IList<string> parameters)
{
Expand Down Expand Up @@ -144,35 +144,4 @@ protected override string GetHelpText()
return "Merges the specified pull request and updates the server";
}
}

class ServiceUpdateCommand : Command
{
public ServiceUpdateCommand()
{
Keyword = "service-update";
}

public override ExitCode Run(IList<string> parameters)
{
if (parameters.Count == 0 || parameters[0] != "--verify")
Console.WriteLine("This command should only be used by the installer program. Please use the --verify option to confirm this command");
else
{
Server.GetComponent<ITGSService>().StopForUpdate();
GC.Collect();
Thread.Sleep(10000);
}
return ExitCode.Normal;
}

protected override string GetArgumentString()
{
return "[--verify]";
}

protected override string GetHelpText()
{
return "Internal. Stops the service in preparation of an update operation.";
}
}
}
4 changes: 2 additions & 2 deletions TGControlPanel/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,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("3.0.84.0")]
[assembly: AssemblyFileVersion("3.0.84.0")]
[assembly: AssemblyVersion("3.0.85.0")]
[assembly: AssemblyFileVersion("3.0.85.0")]
6 changes: 6 additions & 0 deletions TGInstallerWrapper/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>
221 changes: 221 additions & 0 deletions TGInstallerWrapper/Main.Designer.cs

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

Loading

0 comments on commit 4f8a848

Please sign in to comment.