diff --git a/.github/workflows/test-chocolatey.yml b/.github/workflows/test-chocolatey.yml index 679350f..47d20c3 100644 --- a/.github/workflows/test-chocolatey.yml +++ b/.github/workflows/test-chocolatey.yml @@ -42,10 +42,6 @@ jobs: # Binary is already in tools/ from CI build Write-Host "salesforce-cli installed from local build for testing" - - # Exclude non-executables from shimming - New-Item "$toolsDir\LICENSE.ignore" -Type File -Force | Out-Null - New-Item "$toolsDir\README.md.ignore" -Type File -Force | Out-Null '@ | Set-Content tools/chocolateyInstall.ps1 - name: Pack Chocolatey package diff --git a/packaging/chocolatey/tools/chocolateyInstall.ps1 b/packaging/chocolatey/tools/chocolateyInstall.ps1 index eb33fe2..7fdb782 100644 --- a/packaging/chocolatey/tools/chocolateyInstall.ps1 +++ b/packaging/chocolatey/tools/chocolateyInstall.ps1 @@ -32,9 +32,4 @@ Install-ChocolateyZipPackage -PackageName $env:ChocolateyPackageName ` -Checksum $checksum ` -ChecksumType 'sha256' -# Exclude non-executables from shimming -# Chocolatey auto-creates shims for .exe files; .ignore files prevent shimming other files -New-Item "$toolsDir\LICENSE.ignore" -Type File -Force | Out-Null -New-Item "$toolsDir\README.md.ignore" -Type File -Force | Out-Null - Write-Host "salesforce-cli installed successfully. Run 'sfdc --help' to get started." diff --git a/packaging/chocolatey/tools/chocolateyUninstall.ps1 b/packaging/chocolatey/tools/chocolateyUninstall.ps1 deleted file mode 100644 index 90c7cb6..0000000 --- a/packaging/chocolatey/tools/chocolateyUninstall.ps1 +++ /dev/null @@ -1,15 +0,0 @@ -$ErrorActionPreference = 'Stop' - -$toolsDir = Split-Path -Parent $MyInvocation.MyCommand.Definition - -Write-Host "Uninstalling sfdc..." - -# Remove extracted files -Remove-Item "$toolsDir\sfdc.exe" -Force -ErrorAction SilentlyContinue -Remove-Item "$toolsDir\LICENSE" -Force -ErrorAction SilentlyContinue -Remove-Item "$toolsDir\README.md" -Force -ErrorAction SilentlyContinue - -# Remove .ignore files created during install -Remove-Item "$toolsDir\*.ignore" -Force -ErrorAction SilentlyContinue - -Write-Host "sfdc has been uninstalled."