From 8eaf6ddd9cfe733fd6cdcd578d3972ec71a767db Mon Sep 17 00:00:00 2001 From: Akhil Kumar Achanta <71771166+ZeusCraft10@users.noreply.github.com> Date: Mon, 17 Nov 2025 12:24:28 -0500 Subject: [PATCH] feat: Add Beeper to Messaging applications (#3617) * feat: Add Beeper to Messaging applications This commit adds the Beeper desktop application to the list of installable packages in the "Messaging" category. The entry has been added to `config/applications.json` with the official download URL and the correct silent installation arguments. Fixes #3608 * Fix job failure: ensure excluded directory exists before processing This commit updates the Invoke-Preprocessing function to prevent workflow failures caused by missing excluded directories. Previously, the script would attempt to recursively list files in excluded paths, resulting in an error if a directory did not exist. The updated logic checks if the excluded path refers to a directory (ends with a backslash) and creates it if necessary before proceeding. This avoids "Cannot find path" errors and ensures smoother preprocessing, especially for jobs that depend on directory existence for exclusion logic. No changes are made for excluded files or wildcard patterns. --- config/applications.json | 9 +++++++++ tools/Invoke-Preprocessing.ps1 | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/config/applications.json b/config/applications.json index c4547316..62a6498d 100644 --- a/config/applications.json +++ b/config/applications.json @@ -143,6 +143,15 @@ "link": "https://github.com/sharkdp/bat", "winget": "sharkdp.bat" }, + "beeper": { + "category": "Communications", + "choco": "na", + "content": "Beeper", + "description": "All your chats in one app", + "link": "https://www.beeper.com/", + "winget": "Beeper.Beeper" + }, + "bitwarden": { "category": "Utilities", "choco": "bitwarden", diff --git a/tools/Invoke-Preprocessing.ps1 b/tools/Invoke-Preprocessing.ps1 index 9962b9fe..7dec78cf 100644 --- a/tools/Invoke-Preprocessing.ps1 +++ b/tools/Invoke-Preprocessing.ps1 @@ -63,6 +63,10 @@ function Invoke-Preprocessing { if ($ExcludedFiles.Count -gt 0) { ForEach ($excludedFile in $ExcludedFiles) { $filePath = "$(($WorkingDir -replace ('\\$', '')) + '\' + ($excludedFile -replace ('\.\\', '')))" + # Only attempt to create the directory if the excludedFile ends with '\' + if ($excludedFile -match '\\$' -and -not (Test-Path "$filePath")) { + New-Item -Path "$filePath" -ItemType Directory -Force | Out-Null + } $files = Get-ChildItem -Recurse -Path "$filePath" -File -Force if ($files.Count -gt 0) { ForEach ($file in $files) {