mirror of
https://github.com/2e3s/awatcher.git
synced 2025-06-07 12:05:49 +00:00
Add deb for module
This commit is contained in:
parent
ae1e320176
commit
c6a5df58d8
18
.github/workflows/release.yml
vendored
18
.github/workflows/release.yml
vendored
@ -67,18 +67,26 @@ jobs:
|
|||||||
|
|
||||||
- run: mv awatcher aw-awatcher
|
- run: mv awatcher aw-awatcher
|
||||||
working-directory: target/release
|
working-directory: target/release
|
||||||
- run: zip "awatcher.zip" "aw-awatcher"
|
- run: zip "aw-awatcher.zip" "aw-awatcher"
|
||||||
working-directory: target/release
|
working-directory: target/release
|
||||||
- name: Upload awatcher to release
|
- name: Upload awatcher to release
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
file: target/release/awatcher.zip
|
file: target/release/aw-awatcher.zip
|
||||||
|
|
||||||
- run: cargo deb
|
- run: cargo deb --variant=bundle
|
||||||
- name: Upload deb to release
|
- name: Upload bundle deb to release
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
file_glob: true
|
file_glob: true
|
||||||
file: target/debian/*.deb
|
file: target/debian/awatcher*.deb
|
||||||
|
|
||||||
|
- run: cargo deb --variant=module
|
||||||
|
- name: Upload module deb to release
|
||||||
|
uses: svenstaro/upload-release-action@v2
|
||||||
|
with:
|
||||||
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
file_glob: true
|
||||||
|
file: target/debian/aw-awatcher*.deb
|
||||||
|
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -447,7 +447,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "awatcher"
|
name = "awatcher"
|
||||||
version = "0.2.3"
|
version = "0.2.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"aw-datastore",
|
"aw-datastore",
|
||||||
@ -3821,7 +3821,7 @@ checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "watchers"
|
name = "watchers"
|
||||||
version = "0.2.3"
|
version = "0.2.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"async-trait",
|
"async-trait",
|
||||||
|
26
Cargo.toml
26
Cargo.toml
@ -18,7 +18,7 @@ image = { version = "0.24.6" }
|
|||||||
members = ["watchers"]
|
members = ["watchers"]
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "0.2.3"
|
version = "0.2.2"
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
anyhow = "1.0.75"
|
anyhow = "1.0.75"
|
||||||
@ -52,12 +52,25 @@ gnome = ["watchers/gnome"]
|
|||||||
kwin_window = ["watchers/kwin_window"]
|
kwin_window = ["watchers/kwin_window"]
|
||||||
bundle = ["ksni", "aw-server", "aw-datastore", "open", "serde"]
|
bundle = ["ksni", "aw-server", "aw-datastore", "open", "serde"]
|
||||||
|
|
||||||
[package.metadata.deb]
|
[package.metadata.deb.variants.module]
|
||||||
features = ["bundle"]
|
name = "aw-awatcher"
|
||||||
extended-description = """\
|
extended-description = """\
|
||||||
Awatcher is a window activity and idle watcher with an optional tray and UI for statistics.
|
Awatcher is a window activity and idle watcher for ActivityWatch.
|
||||||
The goal is to compensate the fragmentation of desktop environments on Linux by supporting all reportable environments,
|
The goal is to compensate the fragmentation of desktop environments on Linux by supporting all reportable environments with both Wayland and X11.
|
||||||
to add more flexibility to reports with filters, and to have better UX with the distribution by a single executable.
|
"""
|
||||||
|
assets = [
|
||||||
|
["target/release/awatcher", "usr/bin/aw-awatcher", "755"],
|
||||||
|
["README.md", "usr/share/doc/aw-awatcher/README", "644"],
|
||||||
|
]
|
||||||
|
conflicts = "awatcher"
|
||||||
|
|
||||||
|
[package.metadata.deb.variants.bundle]
|
||||||
|
name = "awatcher"
|
||||||
|
features = ["bundle"]
|
||||||
|
|
||||||
|
extended-description = """\
|
||||||
|
Awatcher is a window activity and idle watcher with a tray, server and UI for statistics.
|
||||||
|
The goal is to compensate the fragmentation of desktop environments on Linux by supporting all reportable environments with both Wayland and X11.
|
||||||
"""
|
"""
|
||||||
assets = [
|
assets = [
|
||||||
["src/bundle/awatcher.desktop", "usr/share/applications/", "644"],
|
["src/bundle/awatcher.desktop", "usr/share/applications/", "644"],
|
||||||
@ -65,3 +78,4 @@ assets = [
|
|||||||
["target/release/awatcher", "usr/bin/", "755"],
|
["target/release/awatcher", "usr/bin/", "755"],
|
||||||
["README.md", "usr/share/doc/awatcher/README", "644"],
|
["README.md", "usr/share/doc/awatcher/README", "644"],
|
||||||
]
|
]
|
||||||
|
conflicts = "aw-awatcher"
|
||||||
|
@ -15,9 +15,8 @@ The binaries for the bundle, bundled DEB and ActivityWatch watchers replacement
|
|||||||
|
|
||||||
### Module for ActivityWatch
|
### Module for ActivityWatch
|
||||||
|
|
||||||
- `awatcher.zip` has a single file `aw-awatcher`. Run `sudo unzip awatcher.zip -d /usr/local/bin` in the console to allow ActivityWatch to detect its presence.
|
- Run `sudo unzip aw-awatcher.zip -d /usr/local/bin` in the console to allow ActivityWatch to detect its presence.
|
||||||
Or specify for `-d` any other directory which is present in `$PATH` environment variable.
|
- Or install the provided **aw-awatcher_\*.deb**.
|
||||||
Ensure that the extracted file is `aw-awatcher` and not `awatcher`, rename it if necessary.
|
|
||||||
- Remove `aw-watcher-window` and `aw-watcher-afk` from autostart at `aw-qt/aw-qt.toml` in [config directory](https://docs.activitywatch.net/en/latest/directories.html#config),
|
- Remove `aw-watcher-window` and `aw-watcher-afk` from autostart at `aw-qt/aw-qt.toml` in [config directory](https://docs.activitywatch.net/en/latest/directories.html#config),
|
||||||
add `aw-awatcher`
|
add `aw-awatcher`
|
||||||
- Restart ActivityWatch. In the Modules submenu there should be a new checked module **aw-awatcher**.
|
- Restart ActivityWatch. In the Modules submenu there should be a new checked module **aw-awatcher**.
|
||||||
@ -29,7 +28,7 @@ The bundle is **aw-server-rust** and **awatcher** as a single executable.
|
|||||||
The data storage is compatible with ActivityWatch and **aw-server-rust** (**aw-server** has a different storage), so this can later be run as a module for ActivityWatch.
|
The data storage is compatible with ActivityWatch and **aw-server-rust** (**aw-server** has a different storage), so this can later be run as a module for ActivityWatch.
|
||||||
|
|
||||||
External modules are run like in the original ActivityWatch distribution
|
External modules are run like in the original ActivityWatch distribution
|
||||||
by looking at `$PATH` and running all binaries which start with `aw-`.
|
by looking at `$PATH` and running all executables whose name starts with `aw-`.
|
||||||
They are controled from the tray, no additional configuration is necessary.
|
They are controled from the tray, no additional configuration is necessary.
|
||||||
|
|
||||||
## Supported environments
|
## Supported environments
|
||||||
|
Loading…
x
Reference in New Issue
Block a user