mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-12-17 17:55:28 +00:00
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.
This commit is contained in:
parent
3c54e0ea3f
commit
8eaf6ddd9c
@ -143,6 +143,15 @@
|
|||||||
"link": "https://github.com/sharkdp/bat",
|
"link": "https://github.com/sharkdp/bat",
|
||||||
"winget": "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": {
|
"bitwarden": {
|
||||||
"category": "Utilities",
|
"category": "Utilities",
|
||||||
"choco": "bitwarden",
|
"choco": "bitwarden",
|
||||||
|
|||||||
@ -63,6 +63,10 @@ function Invoke-Preprocessing {
|
|||||||
if ($ExcludedFiles.Count -gt 0) {
|
if ($ExcludedFiles.Count -gt 0) {
|
||||||
ForEach ($excludedFile in $ExcludedFiles) {
|
ForEach ($excludedFile in $ExcludedFiles) {
|
||||||
$filePath = "$(($WorkingDir -replace ('\\$', '')) + '\' + ($excludedFile -replace ('\.\\', '')))"
|
$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
|
$files = Get-ChildItem -Recurse -Path "$filePath" -File -Force
|
||||||
if ($files.Count -gt 0) {
|
if ($files.Count -gt 0) {
|
||||||
ForEach ($file in $files) {
|
ForEach ($file in $files) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user