Skip to content

Commit

Permalink
chocolatey changes (#4223)
Browse files Browse the repository at this point in the history
Co-authored-by: v-vreyya <v-vreyya@DESKTOP-RT7L5HG>
  • Loading branch information
VineethReyya and v-vreyya authored Jan 9, 2025
1 parent c09a203 commit 2619642
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions publish-scripts/chocolatey/installps_template
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,14 @@ $packageArgs = @{
Install-ChocolateyZipPackage @packageArgs

# only symlink for func.exe
$files = Get-ChildItem $toolsDir -include *.exe -recurse
$files = Get-ChildItem $toolsDir -filter *.exe -Recurse -File
foreach ($file in $files) {
if (!$file.Name.Equals("func.exe")) {
if (!$file.Name.Equals("func.exe") -or (!($file.DirectoryName -eq $toolsDir) -and
$file.Name.Equals("func.exe"))) {
#generate an ignore file
New-Item "$file.ignore" -type file -force | Out-Null
$ignoreFilePath = Join-Path -Path $file.DirectoryName -ChildPath "$($file.Name).ignore"
New-Item -Path $ignoreFilePath -Type File -Force | Out-Null
}
}

Expand Down

0 comments on commit 2619642

Please sign in to comment.