From b12a441a9277c88748d905fec9000da5ef215986 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Wed, 16 Aug 2017 13:47:41 +0200 Subject: [PATCH] set constant debug module version string --- src/PSCredentialStore.psd1 | 3 ++- tools/AppVeyor.psm1 | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PSCredentialStore.psd1 b/src/PSCredentialStore.psd1 index 0498f08..69f08ce 100644 --- a/src/PSCredentialStore.psd1 +++ b/src/PSCredentialStore.psd1 @@ -12,7 +12,8 @@ RootModule = 'PSCredentialStore' # Version number of this module. - ModuleVersion = $Env:APPVEYOR_BUILD_VERSION + # Do not touch the version number. It gets replaced in the build process. + ModuleVersion = '0.0.0.9999' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/tools/AppVeyor.psm1 b/tools/AppVeyor.psm1 index 63d5343..58f916d 100644 --- a/tools/AppVeyor.psm1 +++ b/tools/AppVeyor.psm1 @@ -19,7 +19,7 @@ Function Invoke-AppVeyorBumpVersion() { Try { $ModManifest = Get-Content -Path (".\src\{0}.psd1" -f $CALLSIGN) - $BumpedManifest = $ModManifest -replace '\$Env:APPVEYOR_BUILD_VERSION', "'$Env:APPVEYOR_BUILD_VERSION'" + $BumpedManifest = $ModManifest -replace '0.0.0.9999', $Env:APPVEYOR_BUILD_VERSION Remove-Item -Path (".\src\{0}.psd1" -f $CALLSIGN) Out-File -FilePath (".\src\{0}.psd1" -f $CALLSIGN) -InputObject $BumpedManifest -NoClobber -Encoding utf8 -Force }