Update package version to 0.9.0
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
name: lact
|
name: lact
|
||||||
description: Linux GPU configuration and monitoring tool
|
description: Linux GPU configuration and monitoring tool
|
||||||
version: 0.8.4
|
version: 0.9.0
|
||||||
revision: 1
|
revision: 1
|
||||||
url: https://github.com/ilya-zlobintsev/LACT
|
url: https://github.com/ilya-zlobintsev/LACT
|
||||||
license: MIT
|
license: MIT
|
||||||
@@ -14,6 +14,7 @@ depends:
|
|||||||
- gtk4
|
- gtk4
|
||||||
- hwdata
|
- hwdata
|
||||||
- ocl-icd
|
- ocl-icd
|
||||||
|
- libadwaita
|
||||||
optional_depends:
|
optional_depends:
|
||||||
- vulkan-tools
|
- vulkan-tools
|
||||||
- clinfo
|
- clinfo
|
||||||
@@ -22,23 +23,10 @@ make_depends:
|
|||||||
- clang
|
- clang
|
||||||
- libadwaita
|
- libadwaita
|
||||||
- fuse3
|
- fuse3
|
||||||
|
provides:
|
||||||
|
- lact-libadwaita
|
||||||
downloads:
|
downloads:
|
||||||
- url: https://github.com/ilya-zlobintsev/LACT/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz
|
- url: https://github.com/ilya-zlobintsev/LACT/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz
|
||||||
extract_to: ${BPM_SOURCE}
|
extract_to: ${BPM_SOURCE}
|
||||||
extract_strip_components: 1
|
extract_strip_components: 1
|
||||||
checksum: 9dd7e6bf700a9b0c22f320bf062956e84a78a7854c0a6fbc152c644e311e3c12
|
checksum: 4a422ef394351704b6506d97e1a8ff262b8cd9af4b81ef1e096bc60c22797bf8
|
||||||
split_packages:
|
|
||||||
- name: lact
|
|
||||||
conflicts:
|
|
||||||
- lact-libadwaita
|
|
||||||
- name: lact-libadwaita
|
|
||||||
description: Linux GPU configuration and monitoring tool (Libadwaita)
|
|
||||||
depends:
|
|
||||||
- gcc-libs
|
|
||||||
- glibc
|
|
||||||
- gtk4
|
|
||||||
- hwdata
|
|
||||||
- ocl-icd
|
|
||||||
- libadwaita
|
|
||||||
conflicts:
|
|
||||||
- lact
|
|
||||||
|
|||||||
@@ -12,19 +12,19 @@ index 2b1a803..29a86fd 100644
|
|||||||
Full config file with all possible options:
|
Full config file with all possible options:
|
||||||
```yaml
|
```yaml
|
||||||
diff --git a/lact-gui/src/app.rs b/lact-gui/src/app.rs
|
diff --git a/lact-gui/src/app.rs b/lact-gui/src/app.rs
|
||||||
index 82b26ec..6294978 100644
|
index 46ba0d4..8def77c 100644
|
||||||
--- a/lact-gui/src/app.rs
|
--- a/lact-gui/src/app.rs
|
||||||
+++ b/lact-gui/src/app.rs
|
+++ b/lact-gui/src/app.rs
|
||||||
@@ -212,7 +212,7 @@ impl AsyncComponent for AppModel {
|
@@ -423,7 +423,7 @@ impl AsyncComponent for AppModel {
|
||||||
.expect("Could not list devices");
|
|
||||||
|
|
||||||
if system_info.version != GUI_VERSION || system_info.commit.as_deref() != Some(GIT_COMMIT) {
|
if system_info.version != GUI_VERSION || system_info.commit.as_deref() != Some(GIT_COMMIT) {
|
||||||
- let err = anyhow!("Version mismatch between GUI and daemon ({GUI_VERSION}-{GIT_COMMIT} vs {}-{})! If you have updated LACT, you need to restart the service with `sudo systemctl restart lactd`.", system_info.version, system_info.commit.as_deref().unwrap_or_default());
|
let err = anyhow!(
|
||||||
+ let err = anyhow!("Version mismatch between GUI and daemon ({GUI_VERSION}-{GIT_COMMIT} vs {}-{})! If you have updated LACT, you need to restart the service with `sudo ectl sv reload && sudo ectl sv restart lactd`.", system_info.version, system_info.commit.as_deref().unwrap_or_default());
|
- "Version mismatch between GUI and daemon ({GUI_VERSION}-{GIT_COMMIT} vs {}-{})! If you have updated LACT, you need to restart the service with `sudo systemctl restart lactd`.",
|
||||||
sender.input(AppMsg::Error(err.into()));
|
+ "Version mismatch between GUI and daemon ({GUI_VERSION}-{GIT_COMMIT} vs {}-{})! If you have updated LACT, you need to restart the service with `sudo ectl sv reload && sudo ectl sv restart lactd`.",
|
||||||
}
|
system_info.version,
|
||||||
|
system_info.commit.as_deref().unwrap_or_default()
|
||||||
@@ -1045,7 +1045,7 @@ fn show_embedded_info(parent: &ApplicationWindow, err: anyhow::Error) {
|
);
|
||||||
|
@@ -1290,7 +1290,7 @@ fn show_embedded_info(parent: &ApplicationWindow, err: anyhow::Error) {
|
||||||
|
|
||||||
let text_label = gtk::Label::new(Some(&text));
|
let text_label = gtk::Label::new(Some(&text));
|
||||||
let enable_label = gtk::Entry::builder()
|
let enable_label = gtk::Entry::builder()
|
||||||
|
|||||||
@@ -9,45 +9,26 @@ prepare() {
|
|||||||
# Add enit support
|
# Add enit support
|
||||||
patch -Np1 -i "$BPM_WORKDIR"/enit-support.patch
|
patch -Np1 -i "$BPM_WORKDIR"/enit-support.patch
|
||||||
|
|
||||||
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
cargo fetch --locked --target "$(rustc --print host-tuple)"
|
||||||
}
|
}
|
||||||
|
|
||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
# Libadwaita
|
# Libadwaita
|
||||||
cargo build --release --locked --frozen --features=adw
|
|
||||||
mv target/release/lact target/release/lact-libadwaita
|
|
||||||
|
|
||||||
# GTK4
|
|
||||||
cargo build --release --locked --frozen
|
cargo build --release --locked --frozen
|
||||||
}
|
}
|
||||||
|
|
||||||
# The check function is executed in the source directory
|
# The check function is executed in the source directory
|
||||||
# This function is used to run tests to verify the package has been compiled correctly
|
# This function is used to run tests to verify the package has been compiled correctly
|
||||||
check() {
|
check() {
|
||||||
cargo test --release --frozen --all --all-features --verbose
|
cargo test --frozen --workspace --verbose
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package_lact() {
|
package() {
|
||||||
make PREFIX=/usr DESTDIR="$BPM_OUTPUT" install
|
make PREFIX=/usr DESTDIR="$BPM_OUTPUT" install
|
||||||
install -Dm755 target/release/lact "$BPM_OUTPUT"/usr/bin/lact
|
|
||||||
|
|
||||||
# Remove systemd service
|
|
||||||
rm -r "$BPM_OUTPUT"/usr/lib
|
|
||||||
|
|
||||||
# Install esvm service
|
|
||||||
install -Dm644 "$BPM_WORKDIR"/lactd.esv "$BPM_OUTPUT"/etc/esvm/services/lactd.esv
|
|
||||||
|
|
||||||
# Install package license
|
|
||||||
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/lact/LICENSE
|
|
||||||
}
|
|
||||||
|
|
||||||
package_lact-libadwaita() {
|
|
||||||
make PREFIX=/usr DESTDIR="$BPM_OUTPUT" install
|
|
||||||
install -Dm755 target/release/lact-libadwaita "$BPM_OUTPUT"/usr/bin/lact
|
|
||||||
|
|
||||||
# Remove systemd service
|
# Remove systemd service
|
||||||
rm -r "$BPM_OUTPUT"/usr/lib
|
rm -r "$BPM_OUTPUT"/usr/lib
|
||||||
|
|||||||
Reference in New Issue
Block a user