diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml index 2cd399df..adefe8ea 100644 --- a/.github/workflows/winget.yml +++ b/.github/workflows/winget.yml @@ -14,14 +14,14 @@ jobs: } $Latest_Release = (Invoke-RestMethod @Parameters).Sophia_Script_Windows_11_PowerShell_5_1 - - name: Publish Sophia Script for Windows (Windows 11) - # https://github.com/vedantmgoyal9/winget-releaser - uses: vedantmgoyal9/winget-releaser@main - with: - identifier: TeamSophia.SophiaScript - version: $Latest_Release - release-tag: $Latest_Release - installers-regex: "Sophia.Script.for.Windows.11.v$($Latest_Release).zip" - release-notes-url: https://github.com/farag2/Sophia-Script-for-Windows/blob/master/CHANGELOG.md - # https://github.com/settings/tokens - token: ${{ secrets.WINGET_TOKEN }} + $installerUrl = https://github.com/farag2/Sophia-Script-for-Windows/releases/download/$Latest_Release/Sophia.Script.for.Windows.11.v$Latest_Release.zip + + - name: Create winget PR + run: | + $Parameters = @{ + Uri = "https://aka.ms/wingetcreate/latest" + OutFile = "wingetcreate.exe" + } + Invoke-WebRequest @Parameters + + & wingetcreate.exe update TeamSophia.SophiaScript --urls $installerUrl --version $Latest_Release --token "${{ secrets.WINGET_TOKEN }}" --submit diff --git a/chocolatey/sophia.nuspec b/chocolatey/sophia.nuspec index 81baf311..c3efd3ff 100644 --- a/chocolatey/sophia.nuspec +++ b/chocolatey/sophia.nuspec @@ -16,7 +16,7 @@ https://github.com/farag2/Sophia-Script-for-Windows https://github.com/farag2/Sophia-Script-for-Windows/blob/master/README.md https://github.com/farag2/Sophia-Script-for-Windows/issues - windows gui script powershell tweaks windows-10 sophia tweaker tweak debloat debloating ltsc windows-11 debloater windows-debloat sophia-script 22h2 23h2 24h2 + windows gui script powershell tweaks windows-10 sophia tweaker tweak debloat debloating ltsc windows-11 debloater windows-debloat sophia-script 22h2 23h2 24h2 The most powerful PowerShell module on GitHub for Windows 10 and Windows 11 fine-tuning and tweaking Sophia Script for Windows is the largest PowerShell module on GitHub for Windows 10 and Windows 11 fine-tuning and automating the routine tasks https://github.com/farag2/Sophia-Script-for-Windows/blob/master/CHANGELOG.md