Skip to content

Commit d452709

Browse files
ci(vscode): resize Agent trace.png to 128x128 icon in CI
Use sharp in the publish workflow to resize the real icon before packaging. Removes the programmatically-generated placeholder. Co-authored-by: Ona <no-reply@ona.com>
1 parent b5606a3 commit d452709

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/publish-vscode.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ jobs:
2323
- name: Install dependencies
2424
run: npm install
2525

26+
- name: Resize icon to 128x128
27+
run: |
28+
npm install sharp
29+
node -e "require('sharp')('../Agent trace.png').resize(128,128,{fit:'cover'}).png().toFile('icon.png').then(()=>console.log('done')).catch(e=>{console.error(e);process.exit(1);})"
30+
2631
- name: Install vsce
2732
run: npm install -g @vscode/vsce
2833

Agent trace.png

128 KB
Loading

0 commit comments

Comments
 (0)