feat: Add GitRepoRegistration cmdlets (#5)
- adds GitRepoRegistration cmdlets - adds basic tests for GitRepoRegistration implementations - adds initial build project and scripts Refs: #5, #6
This commit is contained in:
parent
3547e32b6e
commit
5c09b7c5a8
66 changed files with 1619 additions and 142 deletions
28
src/PowershellModule/PostBuild.ps1
Normal file
28
src/PowershellModule/PostBuild.ps1
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<#
|
||||
.SYNOPSIS
|
||||
Removes all non-core files from build output
|
||||
#>
|
||||
param(
|
||||
[Parameter(ValueFromPipeline = $true, Position = 0, Mandatory = $true)]
|
||||
$targetDir
|
||||
)
|
||||
|
||||
$nativeSqliteDllLocation = "$( $targetDir )runtimes\win-x64\native\e_sqlite3.dll";
|
||||
|
||||
if ($false -eq (Test-Path $nativeSqliteDllLocation))
|
||||
{
|
||||
Write-Error "POST BUILD FAILED: Unable to locate $nativeSqliteDllLocation"
|
||||
}
|
||||
|
||||
Write-Host "Copying '$nativeSqliteDllLocation' to '$targetDir'"
|
||||
Copy-Item -Path $nativeSqliteDllLocation -Destination $targetDir
|
||||
|
||||
# Because we use CopyLocalLockFileAssemblies Files that are needed for the module
|
||||
$allowList = @(
|
||||
"ModuleCore*"
|
||||
"PowershellModule*"
|
||||
"*SQLite*"
|
||||
"data"
|
||||
)
|
||||
Write-Host "Removing all non-module required files from '$targetDir'"
|
||||
Get-ChildItem -Path $targetDir -exclude $allowList | Remove-Item -Recurse
|
||||
Loading…
Reference in a new issue