Skip to content

Commit 456855e

Browse files
t3dotggclaude
andcommitted
ci(release): cache the AppImage runtime archive with FPM and 7-Zip
The AppImage target also fetches appimage-tools-runtime (12 MB, the largest of the three) from GitHub releases on every Linux build, through the same checksum-verified archive cache. With only FPM and 7-Zip cached, packaging still went to the network. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent ebdecaa commit 456855e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎.github/workflows/release-desktop.yml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,15 +210,16 @@ jobs:
210210
native/hyprland-snap-shot/target/${{ inputs.rust_target }}/release/t3-hyprland-snap-shot
211211
key: linux-capture-helpers-${{ inputs.rust_target }}-${{ hashFiles('native/kde-snap-shot/Cargo.lock', 'native/kde-snap-shot/Cargo.toml', 'native/kde-snap-shot/src/**', 'native/hyprland-snap-shot/Cargo.lock', 'native/hyprland-snap-shot/Cargo.toml', 'native/hyprland-snap-shot/src/**', 'native/hyprland-snap-shot/protocols/**') }}
212212

213-
# The deb target makes electron-builder fetch FPM and the 7-Zip that
214-
# unpacks it from GitHub releases on every Linux build. It checks an
215-
# archive found here against the SHA-256 pinned in those toolset files
216-
# and downloads again on a mismatch, so only raw archives are cached.
213+
# Every Linux build makes electron-builder fetch the AppImage runtime, FPM
214+
# for the deb, and the 7-Zip that unpacks FPM from GitHub releases. It
215+
# checks an archive found here against the SHA-256 pinned in those toolset
216+
# files and downloads again on a mismatch, so only raw archives are cached.
217217
- name: Cache Linux packaging tool archives
218218
if: inputs.platform == 'linux'
219219
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
220220
with:
221221
path: |
222+
~/.cache/electron-builder/appimage@*/appimage-tools-runtime-*.tar.gz
222223
~/.cache/electron-builder/fpm@*/fpm-*.7z
223224
~/.cache/electron-builder/7zip@*/7zip-linux-*.tar.gz
224225
key: electron-builder-linux-tools-${{ inputs.arch }}-${{ hashFiles('node_modules/.pnpm/app-builder-lib@*/node_modules/app-builder-lib/out/toolsets/linux.js', 'node_modules/.pnpm/app-builder-lib@*/node_modules/app-builder-lib/out/toolsets/7zip.js') }}

0 commit comments

Comments
 (0)