diff --git a/Program.cs b/Program.cs index 15cb861..c058c33 100644 --- a/Program.cs +++ b/Program.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; using System.IO; using System.Linq; +using System.Reflection; using System.Text; using System.Threading.Tasks; @@ -29,7 +30,7 @@ public static class Program // Parse cli arguments 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("--help, -h Display this help message."); Console.WriteLine("--verbose, -v Display some extra information when the program is running."); diff --git a/package.sh b/package.sh index aca75aa..1f09a4c 100755 --- a/package.sh +++ b/package.sh @@ -1,8 +1,8 @@ #!/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" -echo Building Debian package... +echo Building Debian package for v$VERSION... mkdir -p $TEMP_PKG_PATH/usr/local/bin mkdir -p $TEMP_PKG_PATH/etc/bash_completion.d