diff --git a/.github/workflows/build-tauri.yml b/.github/workflows/build-tauri.yml index dbe4458ff..88759261f 100644 --- a/.github/workflows/build-tauri.yml +++ b/.github/workflows/build-tauri.yml @@ -159,6 +159,24 @@ jobs: poetry install make package SKIP_SERVER_RUST=${{ matrix.skip_rust }} + - name: Package Linux (Tauri bundles) + if: runner.os == 'Linux' + run: | + # aw-tauri's bundler produces .AppImage/.deb/.rpm under + # dist/activitywatch/aw-tauri/ via `make package`. Copy them out with + # versioned, arch-suffixed filenames so they match the + # `dist/activitywatch-*.*` upload pattern below. + ARCH=$(uname -m) + shopt -s nullglob + for ext in AppImage deb rpm; do + files=( dist/activitywatch/aw-tauri/*.${ext} ) + case ${#files[@]} in + 0) continue ;; + 1) cp -v "${files[0]}" "dist/activitywatch-tauri-${VERSION_WITH_V}-linux-${ARCH}.${ext}" ;; + *) echo "ERROR: expected at most 1 .${ext} bundle, found ${#files[@]}" >&2; exit 1 ;; + esac + done + - name: Package dmg if: runner.os == 'macOS' run: |