Skip to content

Commit

Permalink
Embed windows VERSION (#301)
Browse files Browse the repository at this point in the history
* Create windows VERSION file

Create VERSION file to record next to-be-released version.

* Update generate_sdl_agent_exe.ps1

Read default version from VERSION file

Version has default value, thus removing null version --> exit 1
  • Loading branch information
sophieyfang authored Nov 4, 2020
1 parent 0bb7d0c commit 96ccb69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions windows-installer/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v1-13
8 changes: 1 addition & 7 deletions windows-installer/generate_sdl_agent_exe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,7 @@
# ARGUMENTS
##############################

Param([string]$version = "")

if ($version -eq "")
{
Write-Output "No version set. Usage: .\generate_sdl_agent_exe.ps1 -version v1-4"
exit
}
Param([string]$version = (Get-Content "$PSScriptRoot\..\windows-installer\VERSION"))

##############################
# TRACING AND ERROR HANDLING
Expand Down

0 comments on commit 96ccb69

Please sign in to comment.