Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/build-tauri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
Loading