From 546606ac34ddcbdcdd10d5b215e023aefdcac9de Mon Sep 17 00:00:00 2001 From: Bob Date: Sat, 9 May 2026 10:17:42 +0000 Subject: [PATCH] ci(build-tauri): expose Linux AppImage and deb as standalone release artifacts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After `make package`, aw-tauri's package target already builds AppImage and deb alongside the zip — they land in dist/activitywatch/aw-tauri/ but weren't exposed as standalone files matching the Upload step's dist/activitywatch-*.* glob. Add a Linux-specific step (mirroring the existing macOS 'Package dmg' step) that copies the AppImage and deb out to dist/ with the standard naming convention. Closes #1300 --- .github/workflows/build-tauri.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/build-tauri.yml b/.github/workflows/build-tauri.yml index dbe4458ff..34ec935d3 100644 --- a/.github/workflows/build-tauri.yml +++ b/.github/workflows/build-tauri.yml @@ -187,6 +187,24 @@ jobs: CERTIFICATE_MACOS_P12_BASE64: ${{ secrets.CERTIFICATE_MACOS_P12_BASE64 }} CERTIFICATE_MACOS_P12_PASSWORD: ${{ secrets.CERTIFICATE_MACOS_P12_PASSWORD }} + - name: Package AppImage and deb (Linux) + if: runner.os == 'Linux' + run: | + # aw-tauri's package target produces AppImage/deb alongside the zip; + # copy them to dist/ so the Upload step picks them up as standalone artifacts. + APPIMAGE=$(find dist/activitywatch/aw-tauri -name "*.AppImage" 2>/dev/null | head -1) + if [ -n "$APPIMAGE" ]; then + cp "$APPIMAGE" "dist/activitywatch-tauri-${VERSION_WITH_V}-linux-$(uname -m).AppImage" + echo "Packaged AppImage: dist/activitywatch-tauri-${VERSION_WITH_V}-linux-$(uname -m).AppImage" + else + echo "Warning: no AppImage found in dist/activitywatch/aw-tauri/" + fi + DEB=$(find dist/activitywatch/aw-tauri -name "*.deb" 2>/dev/null | head -1) + if [ -n "$DEB" ]; then + cp "$DEB" "dist/activitywatch-tauri-${VERSION_WITH_V}-linux-$(uname -m).deb" + echo "Packaged deb: dist/activitywatch-tauri-${VERSION_WITH_V}-linux-$(uname -m).deb" + fi + - name: Upload packages uses: actions/upload-artifact@v7 with: