Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Fixed compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed May 10, 2022
1 parent 053e26c commit f5b8de3
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 68 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
if: matrix.platform == 'ubuntu-18.04'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libcanberra-gtk-module libcanberra-gtk3-module build-essential curl wget libssl-dev libgtk-3-dev squashfs-tools libgtksourceview-3.0-dev libappindicator3-dev patchelf librsvg2-dev
sudo apt-get install -y libwebkit2gtk-4.0-dev libcanberra-gtk-module libcanberra-gtk3-module build-essential curl wget libssl-dev libgtk-3-dev squashfs-tools libgtksourceview-3.0-dev libappindicator3-dev patchelf librsvg2-dev ayatana-indicator-application
- name: install Caddy (ubuntu)
if: matrix.platform == 'ubuntu-18.04'
Expand Down
67 changes: 15 additions & 52 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/holochain_manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ portpicker = "0.1.1"
serde = {version = "1", features = ["derive"]}
serde-enum-str = "0.2"
serde_yaml = "0.8"
tauri = {version = "=1.0.0-rc.7", features = ["api-all", "system-tray"]}
tauri = {version = "=1.0.0-rc.7", features = ["api-all", "gtk-tray", "system-tray", "wry"], default-features = false}
thiserror = "1.0.30"
url2 = "0.0.6"
2 changes: 1 addition & 1 deletion crates/holochain_web_app_manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ log = "0.4.14"
portpicker = "0.1.1"
serde = {version = "1", features = ["derive"]}
serde_yaml = "0.8"
tauri = {version = "=1.0.0-rc.7", features = ["api-all", "system-tray"]}
tauri = {version = "=1.0.0-rc.7", features = ["api-all", "gtk-tray", "system-tray", "wry"], default-features = false}
thiserror = "1.0.30"
url2 = "0.0.6"
zip = "0.5.0"
9 changes: 0 additions & 9 deletions crates/holochain_web_app_manager/src/web_app_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use std::{
fs::{self, File},
path::{Path, PathBuf},
};
use tauri::{AppHandle, Manager};

use crate::{
caddy::manager::CaddyManager,
Expand All @@ -31,15 +30,13 @@ pub struct WebAppManager {
holochain_manager: HolochainManager,
caddy_manager: CaddyManager,
allocated_ports: HashMap<String, u16>,
app_handle: AppHandle,
}

impl WebAppManager {
pub async fn launch(
version: HolochainVersion,
mut config: LaunchHolochainConfig,
password: String,
app_handle: AppHandle,
) -> Result<Self, LaunchWebAppManagerError> {
let environment_path = config.environment_path.clone();

Expand Down Expand Up @@ -70,7 +67,6 @@ impl WebAppManager {
environment_path,
caddy_manager,
allocated_ports: HashMap::new(),
app_handle,
};
manager
.on_running_apps_changed()
Expand Down Expand Up @@ -163,11 +159,6 @@ impl WebAppManager {
.update_running_apps(&installed_apps)
.map_err(|err| format!("Error reloading caddy {:?}", err))?;

self
.app_handle
.emit_all("running_apps_changed", ())
.map_err(|err| format!("Error sending running_apps_changed event {:?}", err))?;

Ok(())
}

Expand Down
2 changes: 1 addition & 1 deletion crates/lair_keystore_manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ async-trait = "0.1.52"
log = "0.4.14"
serde = {version = "1", features = ["derive"]}
serde-enum-str = "0.2"
tauri = {version = "=1.0.0-rc.7", features = ["api-all", "system-tray"]}
tauri = {version = "=1.0.0-rc.7", features = ["api-all", "gtk-tray", "system-tray", "wry"], default-features = false}
thiserror = "1.0.30"
url2 = "0.0.6"
2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ serde = {version = "1", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.8"
sysinfo = "0.23.5"
tauri = {version = "=1.0.0-rc.7", features = ["api-all", "system-tray"] }
tauri = {version = "=1.0.0-rc.7", features = ["api-all", "gtk-tray", "system-tray", "wry"], default-features = false}
thiserror = "1.0.30"
url = "2.2.2"
url2 = "0.0.6"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/launcher/default_apps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub async fn install_default_apps_if_necessary(manager: &mut WebAppManager) -> R
.install_web_app(
String::from("DevHub"),
dev_hub_bundle,
Some(String::from("0002")),
Some(String::from("0001")),
HashMap::new(),
None,
)
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/launcher/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ impl LauncherManager {
let version_str: String = version.into();

let state =
match WebAppManager::launch(version, config, password, self.app_handle.clone()).await {
match WebAppManager::launch(version, config, password).await {
Ok(mut manager) => match version.eq(&self.config.default_version) {
true => match install_default_apps_if_necessary(&mut manager).await {
Ok(()) => {
Expand Down

0 comments on commit f5b8de3

Please sign in to comment.