File tree Expand file tree Collapse file tree 4 files changed +15
-14
lines changed
Expand file tree Collapse file tree 4 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 11# build.settings.ps1
22$ModuleName = " OSDCloudCustomBuilder"
3- $SourcePath = $PSScriptRoot # Now pointing to the root where the module files are
3+ $SourcePath = $PSScriptRoot # Uncommented as it's needed
44$OutputPath = " $PSScriptRoot \output"
55
6+ # Ensure output directory exists
7+ if (-not (Test-Path - Path $OutputPath )) {
8+ New-Item - Path $OutputPath - ItemType Directory - Force | Out-Null
9+ }
10+
611# Auto-Versioning Configuration
7- $ModuleManifest = Join-Path $PSScriptRoot ' OSDCloudCustomBuilder .psd1'
12+ $ModuleManifest = Join-Path $SourcePath " $ModuleName .psd1"
813
9- # Get the existing version
1014$Manifest = Test-ModuleManifest - Path $ModuleManifest
1115$OldVersion = [System.Version ]$Manifest.Version
12-
1316# Calculate new build version (patch-level bump)
1417$NewVersion = ' {0}.{1}.{2}' -f $OldVersion.Major , $OldVersion.Minor , ($OldVersion.Build + 1 )
15-
1618# Update .psd1 with new version
1719(Get-Content $ModuleManifest ) -replace ' ModuleVersion\s*=\s*"[^"]+"' , " ModuleVersion = `" $NewVersion `" " | Set-Content $ModuleManifest
18-
1920Write-Host " Version updated to: $NewVersion "
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" standalone =" no" ?>
22<!DOCTYPE report PUBLIC "-//JACOCO//DTD Report 1.1//EN" "report.dtd"[]>
3- <report name =" Pester (05/27/2025 02:16:08 )" >
4- <sessioninfo id =" this" start =" 1748311976178 " dump =" 1748312168864 " />
3+ <report name =" Pester (05/27/2025 21:42:44 )" >
4+ <sessioninfo id =" this" start =" 1748381993463 " dump =" 1748382164517 " />
55 <package name =" OSDCloudCustomBuilder/Private" >
66 <class name =" OSDCloudCustomBuilder/Private/Copy-CustomWimToWorkspace" sourcefilename =" Private/Copy-CustomWimToWorkspace.ps1" >
77 <method name =" Copy-CustomWimToWorkspace" desc =" ()" line =" 16" >
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" standalone =" no" ?>
2- <test-results xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" nunit_schema_2.5.xsd" name =" Pester" total =" 22" errors =" 0" failures =" 22" not-run =" 0" inconclusive =" 0" ignored =" 0" skipped =" 0" invalid =" 0" date =" 2025-05-26 " time =" 22:12:54 " >
3- <environment user-domain = " SYSTEKLENO " user = " ofayese " os-version = " 10.0.22631 " machine-name =" SYSTEKLENO" platform =" Microsoft Windows 11 Enterprise|C:\WINDOWS|\Device\Harddisk0\Partition3" cwd = " H:\OSDCloudCustomBuilder " nunit-version =" 2.5.8.0" clr-version =" 9.0.4" />
2+ <test-results xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" nunit_schema_2.5.xsd" name =" Pester" total =" 22" errors =" 0" failures =" 22" not-run =" 0" inconclusive =" 0" ignored =" 0" skipped =" 0" invalid =" 0" date =" 2025-05-27 " time =" 17:39:50 " >
3+ <environment user = " ofayese " cwd = " H:\OSDCloudCustomBuilder " user-domain = " SYSTEKLENO " machine-name =" SYSTEKLENO" platform =" Microsoft Windows 11 Enterprise|C:\WINDOWS|\Device\Harddisk0\Partition3" nunit-version =" 2.5.8.0" os-version = " 10.0.22631 " clr-version =" 9.0.4" />
44 <culture-info current-culture =" en-US" current-uiculture =" en-US" />
5- <test-suite type =" TestFixture" name =" Pester" executed =" True" result =" Failure" success =" False" time =" 192.6856 " asserts =" 0" description =" Pester" >
5+ <test-suite type =" TestFixture" name =" Pester" executed =" True" result =" Failure" success =" False" time =" 171.0538 " asserts =" 0" description =" Pester" >
66 <results >
7- <test-suite type =" TestFixture" name =" H:\OSDCloudCustomBuilder\tests\All-PublicFunctions.Tests.ps1" executed =" True" result =" Failure" success =" False" time =" 0.5039 " asserts =" 0" description =" H:\OSDCloudCustomBuilder\tests\All-PublicFunctions.Tests.ps1" >
7+ <test-suite type =" TestFixture" name =" H:\OSDCloudCustomBuilder\tests\All-PublicFunctions.Tests.ps1" executed =" True" result =" Failure" success =" False" time =" 0.8892 " asserts =" 0" description =" H:\OSDCloudCustomBuilder\tests\All-PublicFunctions.Tests.ps1" >
88 <results >
99 <test-suite type =" TestFixture" name =" Add-OSDCloudCustomDriver Tests" executed =" True" result =" Failure" success =" False" time =" 0" asserts =" 0" description =" Add-OSDCloudCustomDriver Tests" >
1010 <results >
Original file line number Diff line number Diff line change 11param (
2- [string ]$ModuleName = " MyNewModule " ,
3- [string ]$Destination = " $PWD \MyNewModule "
2+ [string ]$ModuleName = " OSDCloudCustomBuilder " ,
3+ [string ]$Destination = " $PWD \OSDCloudCustomBuilder "
44)
55
66Write-Host " 📁 Creating new module scaffold: $Destination "
You can’t perform that action at this time.
0 commit comments