Skip to content

Commit 26a12d5

Browse files
committed
fix: ensure plugin.json is included in package for PTRUN1302 compliance
1 parent 8ede6b6 commit 26a12d5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/build-and-release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,16 @@ jobs:
7070
New-Item -ItemType Directory -Force -Path $artifactDir
7171
New-Item -ItemType Directory -Force -Path "$artifactDir/RandomGen"
7272
73+
# Copy plugin.json file to ensure metadata is included in the package
74+
$pluginJsonSrc = "RandomGen/Community.PowerToys.Run.Plugin.RandomGen/plugin.json"
75+
if (Test-Path $pluginJsonSrc) {
76+
Write-Host "Copying plugin.json from $pluginJsonSrc to $artifactDir/RandomGen/"
77+
Copy-Item -Path $pluginJsonSrc -Destination "$artifactDir/RandomGen/" -Force
78+
} else {
79+
Write-Error "plugin.json not found at $pluginJsonSrc"
80+
exit 1
81+
}
82+
7383
# Copy Images folder (icons) to artifact directory to ensure correct icons in release
7484
$imagesSrc = "RandomGen/Community.PowerToys.Run.Plugin.RandomGen/Images"
7585
$imagesDst = "$artifactDir/RandomGen/Images"

0 commit comments

Comments
 (0)