now you only have to change the version number in AssemblyInfo.cs to update the version number everywhere.

This commit is contained in:
Carson McManus 2016-08-24 13:01:49 -04:00
parent 00e5ebd868
commit 596ffc2f60
2 changed files with 4 additions and 3 deletions

View file

@ -4,6 +4,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Reflection;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -29,7 +30,7 @@ public static class Program
// Parse cli arguments // Parse cli arguments
if (args.Contains("--help") || args.Contains("-h")) if (args.Contains("--help") || args.Contains("-h"))
{ {
Console.WriteLine("steamguard-cli - v0.0"); Console.WriteLine($"steamguard-cli - v{Assembly.GetExecutingAssembly().GetName().Version}");
Console.WriteLine(); Console.WriteLine();
Console.WriteLine("--help, -h Display this help message."); Console.WriteLine("--help, -h Display this help message.");
Console.WriteLine("--verbose, -v Display some extra information when the program is running."); Console.WriteLine("--verbose, -v Display some extra information when the program is running.");

View file

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
VERSION="0.1-0" VERSION=$(build/steamguard --help | head -n 1 | cut -d v -f 2)"-0"
TEMP_PKG_PATH="/tmp/steamguard-cli_$VERSION" TEMP_PKG_PATH="/tmp/steamguard-cli_$VERSION"
echo Building Debian package... echo Building Debian package for v$VERSION...
mkdir -p $TEMP_PKG_PATH/usr/local/bin mkdir -p $TEMP_PKG_PATH/usr/local/bin
mkdir -p $TEMP_PKG_PATH/etc/bash_completion.d mkdir -p $TEMP_PKG_PATH/etc/bash_completion.d