From acae8d9a26af7eeb19ead484b9e745c5e27fe150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Luis=20Cano=20Rodr=C3=ADguez?= Date: Thu, 22 Oct 2026 18:12:46 +0200 Subject: [PATCH 1/2] feat: default snap icon from the org avatar, overridable per repo Repos that ship their own snap/meta/gui/icon.png keep it; otherwise the pack job fetches the obs-plugins-snaps org avatar before packing, so store listings get a real icon out of the box. Assisted-by: OpenRouter:z-ai/glm-5.3-flash pi --- .github/workflows/build-snap.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/build-snap.yml b/.github/workflows/build-snap.yml index cefe737..a409486 100644 --- a/.github/workflows/build-snap.yml +++ b/.github/workflows/build-snap.yml @@ -18,6 +18,19 @@ jobs: steps: - uses: actions/checkout@v7 + # Default icon: the org avatar. Repos may override it by shipping + # their own snap/meta/gui/icon.png (checked out above, if present). + - name: 🖼️ Fetch default icon + env: + GH_TOKEN: ${{ github.token }} + run: | + if [[ ! -f snap/meta/gui/icon.png ]]; then + mkdir -p snap/meta/gui + org_id="$(curl -fsSL https://api.github.com/orgs/obs-plugins-snaps | jq -r .id)" + curl -fsSL -o snap/meta/gui/icon.png \ + "https://avatars.githubusercontent.com/u/${org_id}?size=256" + fi + - uses: canonical/craft-actions/snapcraft/pack@main id: pack From 6b4e247f0315df598ea7030f8e87432865870541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Luis=20Cano=20Rodr=C3=ADguez?= Date: Thu, 22 Oct 2026 18:17:50 +0200 Subject: [PATCH 2/2] fix: align the icon fallback path with the template (snap/gui/icon.png) The template now ships the icon at snap/gui/icon.png and renders icon: snap/gui/icon.png; meta/gui is only the in-snap install layout that snapcraft generates, not a required repo path. Assisted-by: OpenRouter:z-ai/glm-5.3-flash pi --- .github/workflows/build-snap.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-snap.yml b/.github/workflows/build-snap.yml index a409486..c7e6a25 100644 --- a/.github/workflows/build-snap.yml +++ b/.github/workflows/build-snap.yml @@ -19,15 +19,15 @@ jobs: - uses: actions/checkout@v7 # Default icon: the org avatar. Repos may override it by shipping - # their own snap/meta/gui/icon.png (checked out above, if present). + # their own snap/gui/icon.png (checked out above, if present). - name: 🖼️ Fetch default icon env: GH_TOKEN: ${{ github.token }} run: | - if [[ ! -f snap/meta/gui/icon.png ]]; then + if [[ ! -f snap/gui/icon.png ]]; then mkdir -p snap/meta/gui org_id="$(curl -fsSL https://api.github.com/orgs/obs-plugins-snaps | jq -r .id)" - curl -fsSL -o snap/meta/gui/icon.png \ + curl -fsSL -o snap/gui/icon.png \ "https://avatars.githubusercontent.com/u/${org_id}?size=256" fi