From a5dd87a72c913d3c8480df70ae5c9cda3a5f5508 Mon Sep 17 00:00:00 2001 From: k4yt3x Date: Fri, 8 May 2020 22:35:10 -0400 Subject: [PATCH] updated build script to read version from args --- src/build.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/build.ps1 b/src/build.ps1 index 78100b0..97efa00 100644 --- a/src/build.ps1 +++ b/src/build.ps1 @@ -12,9 +12,14 @@ To start a PowerShell session with execution policy bypass powershell –ExecutionPolicy Bypass #> +if ($args.count -ne 1){ + Write-Host -ForegroundColor White "Usage:`n .\build.ps1 VIDEO2X_VERSION" + Exit +} + # version number $SCRIPT_VERSION = "1.0.1" -$VIDEO2X_VERSION = "4.0.0_beta2" +$VIDEO2X_VERSION = $args[0] Write-Host -ForegroundColor White "Video2X Building Script Version $($SCRIPT_VERSION) Starting to build Video2X release packages"