Moving main repo to tech2k

This commit is contained in:
Zachary Gorman 2024-10-29 11:15:06 -07:00
parent 93dff4b442
commit 47e67a83d1
2 changed files with 8 additions and 4 deletions

View file

@ -1,7 +1,11 @@
function Update-GetPC { function Update-GetPC {
if ($devStage -eq "Prod") {
$GetPCSourcePath = "\\int.samhealth.net\files\TEAM\SHSISDesktopSolutions\Powershell\Get-PC_Update_2023\Prod\Get-PC\" $GetPCSourcePath = $getPCProdBuildPath.TrimEnd('\Get-PC.psd1')
}
elseif ($devStage -eq "Dev") {
$GetPCSourcePath = $getPCDevBuildPath.TrimEnd('\Get-PC.psd1')
}
$desinationPath = ($env:PSModulePath -split ';')[0] + "\Get-PC" $desinationPath = ($env:PSModulePath -split ';')[0] + "\Get-PC"
Write-Host "Updating Get-PC..." Write-Host "Updating Get-PC..."

View file

@ -8,7 +8,7 @@ $ErrorActionPreference = 'SilentlyContinue'
#DevStage can take either Dev or Prod as values #DevStage can take either Dev or Prod as values
$devStage = 'Dev' $devStage = 'Dev'
#Locations for dev build and prod build #Locations for dev build and prod build
$getPCDevBuildPath = '\\int.samhealth.net\files\TEAM\SHSISDesktopSolutions\Powershell\Get-PC_Update_2023\Prod\Get-PC\Get-PC.psd1' $getPCDevBuildPath = '\\int.samhealth.net\files\Tech2k\Apps\SHS Custom Desktop Apps\Get-PC\Get-PC\Get-PC.psd1'
$getPCProdBuildPath = "\\shscm01\packages\SHS Custom\Get-PC\Prod\Get-PC\Get-PC.psd1" $getPCProdBuildPath = "\\shscm01\packages\SHS Custom\Get-PC\Prod\Get-PC\Get-PC.psd1"
#grabs the version number out of the module manifest and compares it to the current production version #grabs the version number out of the module manifest and compares it to the current production version
$modulemanifest = Join-Path (get-item $PSScriptRoot).Parent.FullName 'Get-PC.psd1' $modulemanifest = Join-Path (get-item $PSScriptRoot).Parent.FullName 'Get-PC.psd1'
@ -21,7 +21,7 @@ elseif ($devStage -eq "Dev") {
$deployedVersion = (Test-ModuleManifest $getPCDevBuildPath).Version $deployedVersion = (Test-ModuleManifest $getPCDevBuildPath).Version
} }
$getPCWrappedPath = '\\int.samhealth.net\files\TEAM\SHSISDesktopSolutions\Powershell\Get-PC_Update_2023\Get-PC-Wrapped\backlog.txt' $getPCWrappedPath = '\\int.samhealth.net\files\Tech2k\Apps\SHS Custom Desktop Apps\Get-PC-Wrapped\backlog.txt'
$SparkQueryTimeoutSec = 5 $SparkQueryTimeoutSec = 5