authorgravatar for augie@luebbers.emailAugie <augie@luebbers.email> 2026-08-18 13:51:55-05:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-08-18 14:51:55-04:00
logdb0659fead9b7f29f4668c9ba3eb16702c2cff7f
treef7c72fd804d26c77bfd583b8b6a35793724956d5
parentfda740ad7b28334a6c579d801db22ad8f5914b5f
signature Signed by PGP key B5690EEEBB952194

fix(packaging): install AUR launcher icons where icon themes look (#7421)


3 files changed, 14 insertions(+), 14 deletions(-)

packaging/aur/scripts/release.sh-6
...@@ -8,10 +8,8 @@ pkgrel="${PKGREL:-1}"...@@ -8,10 +8,8 @@ pkgrel="${PKGREL:-1}"
88
9if [[ "$tag" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then9if [[ "$tag" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
10 pkgname='t3code-bin'10 pkgname='t3code-bin'
11 icon_path='assets/prod/black-universal-1024.png'
12elif [[ "$tag" =~ ^v[0-9]+\.[0-9]+\.[0-9]+-nightly\.[0-9]{8}\.[0-9]+$ ]]; then11elif [[ "$tag" =~ ^v[0-9]+\.[0-9]+\.[0-9]+-nightly\.[0-9]{8}\.[0-9]+$ ]]; then
13 pkgname='t3code-nightly-bin'12 pkgname='t3code-nightly-bin'
14 icon_path='assets/nightly/nightly-universal-1024.png'
15else13else
16 echo "Release $tag does not publish an AUR package."14 echo "Release $tag does not publish an AUR package."
17 exit 015 exit 0
...@@ -32,11 +30,8 @@ fi...@@ -32,11 +30,8 @@ fi
3230
33work_dir="$(mktemp -d)"31work_dir="$(mktemp -d)"
34trap 'rm -rf -- "$work_dir"' EXIT32trap 'rm -rf -- "$work_dir"' EXIT
35gh api -H 'Accept: application/vnd.github.raw' \
36 "repos/$repo/contents/$icon_path?ref=$tag" > "$work_dir/icon.png"
37gh api -H 'Accept: application/vnd.github.raw' \33gh api -H 'Accept: application/vnd.github.raw' \
38 "repos/$repo/contents/LICENSE?ref=$tag" > "$work_dir/LICENSE"34 "repos/$repo/contents/LICENSE?ref=$tag" > "$work_dir/LICENSE"
39icon_sha256="$(sha256sum "$work_dir/icon.png" | awk '{print $1}')"
40license_sha256="$(sha256sum "$work_dir/LICENSE" | awk '{print $1}')"35license_sha256="$(sha256sum "$work_dir/LICENSE" | awk '{print $1}')"
4136
42package_dir="$repo_root/packaging/aur/$pkgname"37package_dir="$repo_root/packaging/aur/$pkgname"
...@@ -45,7 +40,6 @@ sed -Ei \...@@ -45,7 +40,6 @@ sed -Ei \
45 -e "s/^pkgver=.*/pkgver=$pkgver/" \40 -e "s/^pkgver=.*/pkgver=$pkgver/" \
46 -e "s/^pkgrel=.*/pkgrel=$pkgrel/" \41 -e "s/^pkgrel=.*/pkgrel=$pkgrel/" \
47 -e "/# AppImage$/s/'[0-9a-f]{64}'/'$appimage_sha256'/" \42 -e "/# AppImage$/s/'[0-9a-f]{64}'/'$appimage_sha256'/" \
48 -e "/# icon$/s/'[0-9a-f]{64}'/'$icon_sha256'/" \
49 -e "/# upstream license$/s/'[0-9a-f]{64}'/'$license_sha256'/" \43 -e "/# upstream license$/s/'[0-9a-f]{64}'/'$license_sha256'/" \
50 PKGBUILD44 PKGBUILD
5145
packaging/aur/t3code-bin/PKGBUILD+7-4
...@@ -46,12 +46,10 @@ options=('!debug' '!strip')...@@ -46,12 +46,10 @@ options=('!debug' '!strip')
46_appimage="T3-Code-${pkgver}-x86_64.AppImage"46_appimage="T3-Code-${pkgver}-x86_64.AppImage"
47source=(47source=(
48 "$_appimage::https://github.com/pingdotgg/t3code/releases/download/v${pkgver}/$_appimage"48 "$_appimage::https://github.com/pingdotgg/t3code/releases/download/v${pkgver}/$_appimage"
49 "${pkgname}-${pkgver}.png::https://raw.githubusercontent.com/pingdotgg/t3code/v${pkgver}/assets/prod/black-universal-1024.png"
50 "${pkgname}-${pkgver}-LICENSE::https://raw.githubusercontent.com/pingdotgg/t3code/v${pkgver}/LICENSE"49 "${pkgname}-${pkgver}-LICENSE::https://raw.githubusercontent.com/pingdotgg/t3code/v${pkgver}/LICENSE"
51)50)
52sha256sums=(51sha256sums=(
53 '415c8648f43c3d22d572f27f2c50fdc8c310ea7fcde9537b903e1e2f1c8775a1' # AppImage52 '415c8648f43c3d22d572f27f2c50fdc8c310ea7fcde9537b903e1e2f1c8775a1' # AppImage
54 '403e874556ffbecee8d1b2b5d612a874303fac791212a261bb3bd1b71d83e78d' # icon
55 '935d8f2af0c703f9c39517ee57cc4930b19d02d533be930b63f0e82f93614b43' # upstream license53 '935d8f2af0c703f9c39517ee57cc4930b19d02d533be930b63f0e82f93614b43' # upstream license
56)54)
5755
...@@ -79,8 +77,13 @@ exec /opt/t3code-bin/AppRun "$@"...@@ -79,8 +77,13 @@ exec /opt/t3code-bin/AppRun "$@"
79EOF77EOF
80 ln -s t3code "$pkgdir/usr/bin/t3-code-desktop"78 ln -s t3code "$pkgdir/usr/bin/t3-code-desktop"
8179
82 install -Dm644 "$srcdir/${pkgname}-${pkgver}.png" \80 # Icon lookup only sees sizes registered in hicolor's index.theme (max 512x512).
83 "$pkgdir/usr/share/icons/hicolor/1024x1024/apps/t3code.png"81 local icon size_dir
82 for icon in "$srcdir"/squashfs-root/usr/share/icons/hicolor/*/apps/t3code.png; do
83 size_dir="${icon%/apps/t3code.png}"
84 install -Dm644 "$icon" \
85 "$pkgdir/usr/share/icons/hicolor/${size_dir##*/}/apps/t3code.png"
86 done
8487
85 install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/t3code.desktop" <<'EOF'88 install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/t3code.desktop" <<'EOF'
86[Desktop Entry]89[Desktop Entry]
packaging/aur/t3code-nightly-bin/PKGBUILD+7-4
...@@ -47,12 +47,10 @@ _upstream_version="${pkgver/_nightly./-nightly.}"...@@ -47,12 +47,10 @@ _upstream_version="${pkgver/_nightly./-nightly.}"
47_appimage="T3-Code-${_upstream_version}-x86_64.AppImage"47_appimage="T3-Code-${_upstream_version}-x86_64.AppImage"
48source=(48source=(
49 "$_appimage::https://github.com/pingdotgg/t3code/releases/download/v${_upstream_version}/$_appimage"49 "$_appimage::https://github.com/pingdotgg/t3code/releases/download/v${_upstream_version}/$_appimage"
50 "${pkgname}-${pkgver}.png::https://raw.githubusercontent.com/pingdotgg/t3code/v${_upstream_version}/assets/nightly/nightly-universal-1024.png"
51 "${pkgname}-${pkgver}-LICENSE::https://raw.githubusercontent.com/pingdotgg/t3code/v${_upstream_version}/LICENSE"50 "${pkgname}-${pkgver}-LICENSE::https://raw.githubusercontent.com/pingdotgg/t3code/v${_upstream_version}/LICENSE"
52)51)
53sha256sums=(52sha256sums=(
54 'c4dea5bba9ed0b51b2f60f2d4a4867e61d62b57c50ea66f2792a73112e054566' # AppImage53 'c4dea5bba9ed0b51b2f60f2d4a4867e61d62b57c50ea66f2792a73112e054566' # AppImage
55 '7e59b6394016ef83ed1e946847769e01bf36d4062c5c5af2577fd3e228285fd9' # icon
56 '935d8f2af0c703f9c39517ee57cc4930b19d02d533be930b63f0e82f93614b43' # upstream license54 '935d8f2af0c703f9c39517ee57cc4930b19d02d533be930b63f0e82f93614b43' # upstream license
57)55)
5856
...@@ -80,8 +78,13 @@ exec /opt/t3code-nightly-bin/AppRun "$@"...@@ -80,8 +78,13 @@ exec /opt/t3code-nightly-bin/AppRun "$@"
80EOF78EOF
81 ln -s t3code-nightly "$pkgdir/usr/bin/t3-code-nightly-desktop"79 ln -s t3code-nightly "$pkgdir/usr/bin/t3-code-nightly-desktop"
8280
83 install -Dm644 "$srcdir/${pkgname}-${pkgver}.png" \81 # Icon lookup only sees sizes registered in hicolor's index.theme (max 512x512).
84 "$pkgdir/usr/share/icons/hicolor/1024x1024/apps/t3code-nightly.png"82 local icon size_dir
83 for icon in "$srcdir"/squashfs-root/usr/share/icons/hicolor/*/apps/t3code.png; do
84 size_dir="${icon%/apps/t3code.png}"
85 install -Dm644 "$icon" \
86 "$pkgdir/usr/share/icons/hicolor/${size_dir##*/}/apps/t3code-nightly.png"
87 done
8588
86 install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/t3code.desktop" <<'EOF'89 install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/t3code.desktop" <<'EOF'
87[Desktop Entry]90[Desktop Entry]