mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-07-07 10:37:46 +02:00
nix: improve plugin installation
This commit is contained in:
parent
93131a185a
commit
f1ee049e17
12 changed files with 52 additions and 87 deletions
|
@ -21,6 +21,7 @@ use crate::components::utils::get_capabilities;
|
|||
use crate::components::window::handle_sidebar_click::*;
|
||||
use crate::components::window::reset_window_impl;
|
||||
use crate::components::window::sidebar_entry::SidebarEntry;
|
||||
use crate::VERSION;
|
||||
|
||||
use super::consts::{
|
||||
AUDIO_SIDEBAR, BLUETOOTH_SIDEBAR, CONNECTIVITY_SIDEBAR, SINK_SIDEBAR, SOURCE_SIDEBAR,
|
||||
|
@ -316,7 +317,7 @@ impl ReSetWindow {
|
|||
.license_type(gtk::License::Gpl30)
|
||||
.website("https://github.com/Xetibo/ReSet")
|
||||
.issue_url("https://github.com/Xetibo/ReSet/issues")
|
||||
.version("1.0.0")
|
||||
.version(VERSION)
|
||||
.transient_for(window)
|
||||
.modal(true)
|
||||
.copyright("© 2022-2023 Xetibo")
|
||||
|
|
|
@ -15,6 +15,10 @@ mod tests;
|
|||
|
||||
const APP_ID: &str = "org.Xetibo.ReSet";
|
||||
|
||||
/// Version of the current package.
|
||||
/// Use this to avoid version mismatch conflicts.
|
||||
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
tokio::task::spawn(daemon_check());
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
<property name="hexpand">True</property>
|
||||
<property name="hexpand-set">True</property>
|
||||
<property name="icon-name">open-menu-symbolic</property>
|
||||
<property name="menu-model">main_menu</property>
|
||||
<property name="valign">end</property>
|
||||
<property name="vexpand">True</property>
|
||||
</object>
|
||||
|
|
|
@ -347,7 +347,7 @@
|
|||
(3,33,"GtkMenuButton","can-shrink","True",None,None,None,None,None,None,None,None,None),
|
||||
(3,33,"GtkMenuButton","has-frame","False",None,None,None,None,None,None,None,None,None),
|
||||
(3,33,"GtkMenuButton","icon-name","open-menu-symbolic",None,None,None,None,None,None,None,None,None),
|
||||
(3,33,"GtkMenuButton","menu-model",None,None,None,None,None,None,None,None,None,None),
|
||||
(3,33,"GtkMenuButton","menu-model","54",None,None,None,None,None,None,None,None,None),
|
||||
(3,33,"GtkWidget","halign","end",None,None,None,None,None,None,None,None,None),
|
||||
(3,33,"GtkWidget","hexpand","True",None,None,None,None,None,None,None,None,None),
|
||||
(3,33,"GtkWidget","hexpand-set","True",None,None,None,None,None,None,None,None,None),
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
use std::thread;
|
||||
use std::time::Duration;
|
||||
use re_set_lib::utils::plugin_setup::FRONTEND_PLUGINS;
|
||||
use crate::daemon_check;
|
||||
|
||||
#[tokio::test]
|
||||
#[cfg(test)]
|
||||
async fn test_plugins() {
|
||||
use crate::daemon_check;
|
||||
use re_set_lib::utils::plugin::plugin_tests;
|
||||
use re_set_lib::utils::plugin_setup::FRONTEND_PLUGINS;
|
||||
use std::thread;
|
||||
use std::time::Duration;
|
||||
tokio::task::spawn(daemon_check());
|
||||
thread::sleep(Duration::from_millis(2000));
|
||||
unsafe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue