File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments