Skip to content

Commit

Permalink
Build Script Changes and Readme Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jkdba committed Mar 8, 2019
1 parent 2be9cf5 commit d81139b
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 17 deletions.
Binary file modified PoShKeePass.psd1
Binary file not shown.
18 changes: 10 additions & 8 deletions PoShKeePass.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,20 @@ if (-not(Test-Path -Path $Global:KeePassConfigurationFile))
{
Write-Warning -Message '**IMPORTANT NOTE:** Please always keep an up-to-date backup of your keepass database files and key files if used.'

$CurrentVersion = ((Get-ChildItem "$PSScriptRoot\..").Name | Sort-Object -Descending | Select-Object -First 2)[0]

if($CurrentVersion -eq '2.1.1.8')
{
Write-Warning -Message ('**BREAKING CHANGES:** This new version of the module {0} contains BREAKING CHANGES, please review the changelog or readme for details!' -f $CurrentVersion)
}

Write-Warning -Message 'This message will not show again on next import.'
$Versions = ((Get-ChildItem "$PSScriptRoot\..").Name | Sort-Object -Descending)

if(-not $(Restore-KPConfigurationFile))
{
New-KPConfigurationFile

$previousVersion = [int]($Versions[1] -replace '\.')
$CurrentVersion = $Versions[0]
if($previousVersion -lt 2118)
{
Write-Warning -Message ('**BREAKING CHANGES:** This new version of the module {0} contains BREAKING CHANGES, please review the changelog or readme for details!' -f $CurrentVersion)
}

Write-Warning -Message 'This message will not show again on next import.'
}
}
else
Expand Down
20 changes: 11 additions & 9 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if(-not $BuildPath)
Write-Verbose -Message 'Setting up Build Path'
$RawPSD = Get-Content -Path "$($PSScriptRoot)\PoShKeePass.psd1"
$ModuleVersion = ($RawPSD | Where-Object { $_ -match "^\s+ModuleVersion.+$" }) -replace '.+(\d\.\d\.\d\.\d).$', '$1'
$BuildPath = ('{0}\build\{1}\PoShKeePass' -f $PSScriptRoot, $ModuleVersion)
$BuildPath = ('{0}\build\PoShKeePass\{1}' -f $PSScriptRoot, $ModuleVersion)

if(Test-Path $BuildPath)
{
Expand Down Expand Up @@ -56,18 +56,20 @@ if (-not(Test-Path -Path $Global:KeePassConfigurationFile))
{
Write-Warning -Message '**IMPORTANT NOTE:** Please always keep an up-to-date backup of your keepass database files and key files if used.'
$CurrentVersion = ((Get-ChildItem "$PSScriptRoot\..").Name | Sort-Object -Descending | Select-Object -First 2)[0]
if($CurrentVersion -eq '2.1.1.8')
{
Write-Warning -Message ('**BREAKING CHANGES:** This new version of the module {0} contains BREAKING CHANGES, please review the changelog or readme for details!' -f $CurrentVersion)
}
Write-Warning -Message 'This message will not show again on next import.'
$Versions = ((Get-ChildItem "$PSScriptRoot\..").Name | Sort-Object -Descending)
if(-not $(Restore-KPConfigurationFile))
{
New-KPConfigurationFile
$previousVersion = [int]($Versions[1] -replace '\.')
$CurrentVersion = $Versions[0]
if($previousVersion -lt 2118)
{
Write-Warning -Message ('**BREAKING CHANGES:** This new version of the module {0} contains BREAKING CHANGES, please review the changelog or readme for details!' -f $CurrentVersion)
}
Write-Warning -Message 'This message will not show again on next import.'
}
}
else
Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v.2.1.2.0

* Fix [#148](https://github.com/PSKeePass/PoShKeePass/issues/148) - Can now update an entry multiple times, while retaining history and not through internal lib exception
* Changes to build script

## v2.1.1.8

### Many fixes, features and improvements, please note the **Breaking Changes** Below
Expand Down
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ Please check out our [Getting Started](https://github.com/PSKeePass/PoShKeePass/

Please review the [changelog document](https://github.com/PSKeePass/PoShKeePass/blob/master/changelog.md) for a full history.

## v.2.1.2.0

* Fix [#148](https://github.com/PSKeePass/PoShKeePass/issues/148) - Can now update an entry multiple times, while retaining history and not through internal lib exception
* Changes to build script

## v2.1.1.8

### Many fixes, features and improvements, please note the **Breaking Changes** Below
Expand Down

0 comments on commit d81139b

Please sign in to comment.