diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ff0c18778..f0645d8ec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -123,9 +123,9 @@ jobs: - name: cargo tauri build working-directory: ./src-tauri run: | - cargo install tauri-cli --version "^2" --locked + cargo install tauri-cli --version "2.1.0" --locked cargo tauri --version - cargo tauri build --ci --bundles deb + cargo tauri build --ci --no-bundle file-licenses: name: file-licenses diff --git a/ci/windows-dev-environment-notes.md b/ci/windows-dev-environment-notes.md index af2fdeaea..00601be95 100644 --- a/ci/windows-dev-environment-notes.md +++ b/ci/windows-dev-environment-notes.md @@ -268,16 +268,15 @@ found 0 vulnerabilities ``` # Install Cargo tools - tauri-cli -```PowerShell -cd src/universe -cargo install tauri-cli --version "1.6.4" +```Pow/universe +cargo install tauri-cli --version "2.1.0" ``` sample output: ``` -PS C:\Users\leet\src\universe> cargo install tauri-cli --version "1.6.4" +PS C:\Users\leet\src\universe> cargo install tauri-cli --version "2.1.0" >> Updating crates.io index - Installing tauri-cli v1.6.4 + Installing tauri-cli v2.1.0 Updating crates.io index Fetch [===========> ] 48 complete; 1 pending ``` @@ -291,14 +290,14 @@ PS C:\Users\leet\src\universe> cargo install tauri-cli --version "1.6.4" Building [=======================> ] 491/492: cargo-tauri(bin) Finished `release` profile [optimized] target(s) in 13m 14s Installing C:\Users\leet\.cargo\bin\cargo-tauri.exe - Installed package `tauri-cli v1.6.4` (executable `cargo-tauri.exe`) + Installed package `tauri-cli v2.1.0` (executable `cargo-tauri.exe`) ``` ```PowerShell cargo tauri --version ``` sample output: ``` - tauri-cli 1.6.4 + tauri-cli 2.1.0 ``` # Build from source for ```Tari Universe Alpha``` diff --git a/package.json b/package.json index 174ba1972..00d9081b0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "tari-universe", "private": true, - "version": "0.8.40", + "version": "0.8.41", "type": "module", "scripts": { "dev": "vite dev --mode development", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index b158e8c7c..fa69a4777 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -6899,7 +6899,7 @@ dependencies = [ [[package]] name = "tari-universe" -version = "0.8.40" +version = "0.8.41" dependencies = [ "anyhow", "async-trait", @@ -7470,7 +7470,6 @@ dependencies = [ "tauri-utils 2.1.0 (git+https://github.com/tari-project/tauri.git?rev=67a06c8a9bae94f412b8059dfa8b4d8dd8ea0a25)", "thiserror 2.0.6", "tokio", - "tracing", "tray-icon", "url", "urlpattern", @@ -7733,7 +7732,6 @@ dependencies = [ "tao", "tauri-runtime", "tauri-utils 2.1.0 (git+https://github.com/tari-project/tauri.git?rev=67a06c8a9bae94f412b8059dfa8b4d8dd8ea0a25)", - "tracing", "url", "webkit2gtk", "webview2-com", @@ -9414,7 +9412,6 @@ dependencies = [ "soup3", "tao-macros", "thiserror 1.0.69", - "tracing", "url", "webkit2gtk", "webkit2gtk-sys", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 51f433624..2b455044e 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -4,7 +4,7 @@ description = "Tari Universe" edition = "2021" name = "tari-universe" repository = "https://github.com/tari-project/universe" -version = "0.8.40" +version = "0.8.41" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -74,7 +74,6 @@ tauri = { git = "https://github.com/tari-project/tauri.git", rev = "67a06c8a9bae "image-ico", "tray-icon", "devtools", # TODO: Remove this before mainnet - "tracing", # TODO: Remove this before mainnet ] } tauri-plugin-cli = { git = "https://github.com/tari-project/tauri-plugins-workspace", rev = "09f29b0abe2cb1eb81365b65a3aa3f73325e4e17" } tauri-plugin-os = { git = "https://github.com/tari-project/tauri-plugins-workspace", rev = "09f29b0abe2cb1eb81365b65a3aa3f73325e4e17" } diff --git a/src-tauri/binaries_versions_esmeralda.json b/src-tauri/binaries_versions_esmeralda.json index f0bb1aad8..f92dc82a3 100644 --- a/src-tauri/binaries_versions_esmeralda.json +++ b/src-tauri/binaries_versions_esmeralda.json @@ -4,7 +4,7 @@ "mmproxy": "=1.9.1-pre.2", "minotari_node": "=1.9.1-pre.2", "wallet": "=1.9.1-pre.2", - "sha-p2pool": "=0.18.1", + "sha-p2pool": "=0.19.0", "xtrgpuminer": "=0.2.10", "tor": "=13.5.7" } diff --git a/src-tauri/binaries_versions_nextnet.json b/src-tauri/binaries_versions_nextnet.json index d867429f3..46626f7a3 100644 --- a/src-tauri/binaries_versions_nextnet.json +++ b/src-tauri/binaries_versions_nextnet.json @@ -4,7 +4,7 @@ "mmproxy": "=1.9.1-rc.3", "minotari_node": "=1.9.1-rc.3", "wallet": "=1.9.1-rc.3", - "sha-p2pool": "=0.18.1", + "sha-p2pool": "=0.19.0", "xtrgpuminer": "=0.2.10", "tor": "=13.5.7" } diff --git a/src-tauri/src/app_config.rs b/src-tauri/src/app_config.rs index 582d11672..ac4404d71 100644 --- a/src-tauri/src/app_config.rs +++ b/src-tauri/src/app_config.rs @@ -566,18 +566,19 @@ impl AppConfig { Ok(()) } - pub async fn set_window_settings( - &mut self, - window_settings: WindowSettings, - ) -> Result<(), anyhow::Error> { - self.window_settings = Some(window_settings); - self.update_config_file().await?; - Ok(()) - } - - pub fn window_settings(&self) -> &Option { - &self.window_settings - } + // Config temporarily unused + // pub async fn set_window_settings( + // &mut self, + // window_settings: WindowSettings, + // ) -> Result<(), anyhow::Error> { + // self.window_settings = Some(window_settings); + // self.update_config_file().await?; + // Ok(()) + // } + + // pub fn window_settings(&self) -> &Option { + // &self.window_settings + // } pub async fn set_show_experimental_settings( &mut self, diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 8b3a4b7da..1f2cda715 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -26,7 +26,6 @@ use auto_launcher::AutoLauncher; use gpu_miner_adapter::GpuMinerStatus; use hardware::hardware_status_monitor::HardwareStatusMonitor; -use log::trace; use log::{debug, error, info, warn}; use node_adapter::BaseNodeStatus; use p2pool::models::Connections; @@ -48,7 +47,7 @@ use tari_common::configuration::Network; use tari_common_types::tari_address::TariAddress; use tari_shutdown::Shutdown; use tauri::async_runtime::{block_on, JoinHandle}; -use tauri::{Emitter, Manager, PhysicalPosition, PhysicalSize, RunEvent, WindowEvent}; +use tauri::{Emitter, Manager, RunEvent}; use tauri_plugin_sentry::{minidump, sentry}; use tokio::sync::{Mutex, RwLock}; use tokio::time; @@ -65,7 +64,6 @@ use telemetry_manager::TelemetryManager; use crate::cpu_miner::CpuMiner; -use crate::app_config::WindowSettings; use crate::commands::{CpuMinerConnection, MinerMetrics}; #[allow(unused_imports)] use crate::external_dependencies::ExternalDependencies; @@ -782,10 +780,6 @@ fn main() { } }; - let splash_window = app - .get_webview_window("splashscreen") - .expect("Main window not found"); - // The start of needed restart operations. Break this out into a module if we need n+1 let tcp_tor_toggled_file = config_path.join("tcp_tor_toggled"); if tcp_tor_toggled_file.exists() { @@ -827,15 +821,6 @@ fn main() { app_conf.ludicrous_mode_cpu_options().clone(); cpu_conf.custom_mode_xmrig_options = app_conf.custom_mode_cpu_options().clone(); - // Set splashscreen windows position and size here so it won't jump around - if let Some(w_settings) = app_conf.window_settings() { - let window_position = PhysicalPosition::new(w_settings.x, w_settings.y); - let window_size = PhysicalSize::new(w_settings.width, w_settings.height); - - if let Err(e) = splash_window.set_position(window_position).and_then(|_| splash_window.set_size(window_size)) { - error!(target: LOG_TARGET, "Could not set splashscreen window position or size: {:?}", e); - } - } Ok(()) }); @@ -974,29 +959,6 @@ fn main() { RunEvent::MainEventsCleared => { // no need to handle } - RunEvent::WindowEvent { label, event, .. } => { - trace!(target: LOG_TARGET, "Window event: {:?} {:?}", label, event); - if let WindowEvent::CloseRequested { .. } = event { - if let Some(window) = app_handle.get_webview_window(&label) { - if let (Ok(window_position), Ok(window_size)) = (window.outer_position(), window.inner_size()) { - let window_settings = WindowSettings { - x: window_position.x, - y: window_position.y, - width: window_size.width, - height: window_size.height, - }; - let mut app_config = block_on(app_state.config.write()); - if let Err(e) = block_on(app_config.set_window_settings(window_settings.clone())) { - error!(target: LOG_TARGET, "Could not set window settings: {:?}", e); - } - } else { - error!(target: LOG_TARGET, "Could not get window position or size"); - } - } else { - error!(target: LOG_TARGET, "Could not get main window"); - } - } - } _ => { debug!(target: LOG_TARGET, "Unhandled event: {:?}", event); } diff --git a/src-tauri/src/p2pool_adapter.rs b/src-tauri/src/p2pool_adapter.rs index 55bc3f68e..b826319a7 100644 --- a/src-tauri/src/p2pool_adapter.rs +++ b/src-tauri/src/p2pool_adapter.rs @@ -103,8 +103,10 @@ impl ProcessAdapter for P2poolAdapter { ]; let pid_file_name = self.pid_file_name().to_string(); - args.push("--squad".to_string()); - args.push("default_2".to_string()); + args.push("--squad-prefix".to_string()); + args.push("default".to_string()); + args.push("--num-squads".to_string()); + args.push("2".to_string()); let mut envs = HashMap::new(); match Network::get_current_or_user_setting_or_default() { Network::Esmeralda => { diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 26914bea8..b293ab515 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,5 +1,5 @@ { - "version": "0.8.40", + "version": "0.8.41", "productName": "Tari Universe (Alpha)", "mainBinaryName": "Tari Universe (Alpha)", "identifier": "com.tari.universe.alpha",