Skip to content

Commit 3b378b1

Browse files
authored
Update wingetcreate.ps1
1 parent bff4151 commit 3b378b1

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/wingetcreate.ps1

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,17 @@ $dependency = @"
3131
- PackageIdentifier: Microsoft.PowerShell
3232
MinimumVersion: "7.0.0"
3333
"@
34+
3435
# Remove existing top-level Dependencies block (if any), then insert ours
36+
3537
$content = $content -replace '(?m)^Dependencies:\r?\n([ ]+.+\r?\n)*', ''
36-
$content = $content -replace '(?m)^Installers:', "$dependency`nInstallers:"
37-
Set-Content -Path $installerManifest -Value $content
38+
39+
$content = $content -replace '(?m)^Installers:', "$dependency`nInstallers:"
40+
41+
Set-Content -Path $installerManifest -Value $content
3842
3943
# Submit the modified manifest
44+
4045
$manifestPath = Split-Path $installerManifest
41-
.\wingetcreate.exe submit $manifestPath
46+
47+
.\wingetcreate.exe submit $manifestPath

0 commit comments

Comments
 (0)