-
Notifications
You must be signed in to change notification settings - Fork 95
Enable WinGet installation method for Windows, replace Scoop references #473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
3076dc5
73e0e0b
6738a43
526d9cf
53f2d8a
73c276c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -749,41 +749,27 @@ jobs: | |
| } | ||
| } | ||
|
|
||
| # Update Scoop bucket (only stable releases from public repo) | ||
| update-scoop: | ||
| name: Update Scoop Bucket | ||
| runs-on: ubuntu-latest | ||
| # Update WinGet package at microsoft/winget-pkgs (only stable releases from public repo) | ||
| # Uses Microsoft's official wingetcreate tool (https://github.com/microsoft/winget-create) | ||
| # to generate updated manifests and open a PR to microsoft/winget-pkgs. | ||
| # Requires WINGET_TOKEN secret: classic PAT with public_repo scope. | ||
| update-winget: | ||
| name: Update WinGet Package | ||
| runs-on: windows-latest | ||
| needs: [build-and-test, build-and-validate-macos-intel, build-and-validate-macos-arm, integration-tests, release-validation, create-release, publish-pypi] | ||
| # TODO: Enable once downstream repository and secrets are configured (see #88) | ||
| if: false && github.ref_type == 'tag' && needs.create-release.outputs.is_private_repo != 'true' && needs.create-release.outputs.is_prerelease != 'true' | ||
| if: github.ref_type == 'tag' && needs.create-release.outputs.is_private_repo != 'true' && needs.create-release.outputs.is_prerelease != 'true' | ||
| permissions: | ||
| contents: read | ||
|
|
||
| steps: | ||
| - name: Extract Windows checksum from GitHub release | ||
| id: checksums | ||
| - name: Update WinGet manifest | ||
| run: | | ||
| RELEASE_TAG="${{ github.ref_name }}" | ||
| curl -L -o apm-windows-x86_64.zip.sha256 \ | ||
| "https://github.com/${{ github.repository }}/releases/download/$RELEASE_TAG/apm-windows-x86_64.zip.sha256" | ||
| WINDOWS_X86_64_SHA=$(cat apm-windows-x86_64.zip.sha256 | cut -d' ' -f1) | ||
| echo "windows-x86_64-sha=$WINDOWS_X86_64_SHA" >> $GITHUB_OUTPUT | ||
| echo "Windows x86_64 SHA: $WINDOWS_X86_64_SHA" | ||
|
|
||
| - name: Trigger Scoop bucket repository update | ||
| uses: peter-evans/repository-dispatch@v3 | ||
| with: | ||
| token: ${{ secrets.GH_PKG_PAT }} | ||
| repository: microsoft/scoop-apm | ||
| event-type: bucket-update | ||
| client-payload: | | ||
| { | ||
| "release": { | ||
| "version": "${{ github.ref_name }}", | ||
| "tag": "${{ github.ref_name }}", | ||
| "repository": "${{ github.repository }}" | ||
| }, | ||
| "checksums": { | ||
| "windows_x86_64": "${{ steps.checksums.outputs.windows-x86_64-sha }}" | ||
| } | ||
| } | ||
| $version = "${{ github.ref_name }}" -replace '^v', '' | ||
| $url = "https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/apm-windows-x86_64.zip" | ||
| Invoke-WebRequest -Uri "https://aka.ms/wingetcreate/latest" -OutFile wingetcreate.exe | ||
| .\wingetcreate.exe update Microsoft.APM ` | ||
| --version $version ` | ||
| --urls $url ` | ||
| --submit ` | ||
| --token ${{ secrets.WINGET_TOKEN }} | ||
|
Comment on lines
+767
to
+774
|
||
| shell: pwsh | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,9 +77,8 @@ pip install apm-cli | |
| #### Windows | ||
|
|
||
| ```powershell | ||
| # Scoop | ||
| scoop bucket add apm https://github.com/microsoft/scoop-apm | ||
| scoop install apm | ||
| # WinGet | ||
| winget install Microsoft.APM | ||
| # pip | ||
| pip install apm-cli | ||
| ``` | ||
|
Comment on lines
77
to
84
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -35,11 +35,10 @@ The installer automatically detects your platform (macOS/Linux/Windows, Intel/AR | |||||
| brew install microsoft/apm/apm | ||||||
| ``` | ||||||
|
|
||||||
| **Scoop (Windows):** | ||||||
| **WinGet (Windows):** | ||||||
|
|
||||||
| ```powershell | ||||||
| scoop bucket add apm https://github.com/microsoft/scoop-apm | ||||||
| scoop install apm | ||||||
| winget install Microsoft.APM | ||||||
|
||||||
| winget install Microsoft.APM | |
| winget install --id Microsoft.APM |
Copilot
AI
Apr 6, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR updates Starlight docs to WinGet, but the in-repo usage docs under packages/apm-guide/.apm/skills/apm-usage/installation.md still reference Scoop. Please update that file too so generated guidance stays consistent with the main installation docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR description says CHANGELOG is updated under Unreleased, but there is currently no WinGet-related entry in CHANGELOG.md. Please add the Unreleased changelog entry (or update the PR description if that work is intentionally out of scope).