Update build scripts to support version parameter

This commit is contained in:
Alphaeus Mote
2025-05-09 15:12:23 -04:00
parent effaf14886
commit 3516dd3acb
3 changed files with 11 additions and 5 deletions
+6 -2
View File
@@ -5,8 +5,12 @@
$scriptRoot = $PSScriptRoot
$rootPath = Split-Path -Parent $scriptRoot
# Set the version based on the current date and time
$version = Get-Date -Format "yyyy.MM.dd.HHmm"
# Set the version based on the environment variable or current date and time
if ($env:MODULE_VERSION) {
$version = $env:MODULE_VERSION
} else {
$version = Get-Date -Format "yyyy.MM.dd.HHmm"
}
Write-Host "Building PSProxmox version $version"
# Update the module version in the PSD1 file