Skip to content

Commit 80d1f94

Browse files
committed
Fix DXT packaging with explicit version-based filename
1 parent a3360d7 commit 80d1f94

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/build-extension.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ jobs:
7373
run: npm install -g @anthropic-ai/dxt
7474

7575
- name: Package extension for release
76-
run: npx @anthropic-ai/dxt pack
76+
run: |
77+
VERSION=$(jq -r '.version' manifest.json)
78+
npx @anthropic-ai/dxt pack . chrome-devtools-protocol-${VERSION}.dxt
7779
7880
- name: Create Release
7981
uses: softprops/action-gh-release@v1
@@ -83,7 +85,7 @@ jobs:
8385
prerelease: false
8486
generate_release_notes: true
8587
body: |
86-
## Chrome DevTools Protocol Extension v${{ github.ref_name }}
88+
## Chrome DevTools Protocol Extension ${{ github.ref_name }}
8789
8890
### Installation
8991
1. Download the `.dxt` file from this release
@@ -106,4 +108,4 @@ jobs:
106108
107109
For full documentation, see the repository README.
108110
env:
109-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
111+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ ci-test: install check
6767
# Packaging
6868
package: clean
6969
@echo "Building DXT extension package..."
70-
npx @anthropic-ai/dxt pack
71-
@echo "✅ Extension packaged: chrome-devtools-protocol-*.dxt"
70+
@VERSION=$$(jq -r '.version' manifest.json) && \
71+
npx @anthropic-ai/dxt pack . chrome-devtools-protocol-$$VERSION.dxt && \
72+
echo "✅ Extension packaged: chrome-devtools-protocol-$$VERSION.dxt"
7273

7374
# Cleanup
7475
clean:

0 commit comments

Comments
 (0)