Skip to content

Commit 459ad90

Browse files
committed
for now, remove thing
1 parent a08268f commit 459ad90

4 files changed

Lines changed: 36 additions & 40 deletions

File tree

flatrun-agent/src/flatpak.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
use std::{
2-
env, io,
2+
io,
33
path::PathBuf,
4-
thread::{self, sleep},
5-
time::Duration,
4+
thread::{self},
65
};
76

87
use libflatpak::{
@@ -15,10 +14,7 @@ use libflatpak::{
1514
BundleRef, Installation, LaunchFlags, Remote,
1615
};
1716
use rustix::{process::WaitOptions, thread::Pid};
18-
use signal_hook::{
19-
consts::{SIGINT, SIGKILL, SIGTERM},
20-
iterator::Signals,
21-
};
17+
use signal_hook::{consts::SIGINT, iterator::Signals};
2218

2319
use crate::FlatrunAgentError;
2420

flatrun-agent/src/main.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ enum AgentCommand {
3939
deps_installation: PathBuf,
4040
path: PathBuf,
4141
},
42-
InstallRunDownload {
43-
installation: PathBuf,
44-
deps_installation: PathBuf,
45-
appid: String,
46-
},
42+
// InstallRunDownload {
43+
// installation: PathBuf,
44+
// deps_installation: PathBuf,
45+
// appid: String,
46+
// },
4747
}
4848

4949
fn main() -> Result<(), FlatrunAgentError> {
@@ -60,11 +60,11 @@ fn main() -> Result<(), FlatrunAgentError> {
6060
eprintln!("{:?}", e);
6161
}
6262
},
63-
Some(AgentCommand::InstallRunDownload {
64-
installation,
65-
deps_installation,
66-
appid,
67-
}) => {}
63+
// Some(AgentCommand::InstallRunDownload {
64+
// installation,
65+
// deps_installation,
66+
// appid,
67+
// }) => {}
6868
None => {}
6969
}
7070
Ok(())

flatrun/src/gui.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
use std::path::PathBuf;
2+
3+
use async_std::task::spawn;
4+
use iced::{
5+
executor,
6+
futures::SinkExt,
7+
subscription,
8+
widget::{button, column, row, text},
9+
window, Alignment, Application, Command, Element, Length, Subscription, Theme,
10+
};
11+
112
#[derive(Debug)]
213
pub struct ProgressInfo {
314
repo: String,
@@ -30,17 +41,6 @@ pub enum Message {
3041
Close,
3142
}
3243

33-
use std::{future::IntoFuture, path::PathBuf, process::Child};
34-
35-
use async_std::task::spawn;
36-
use iced::{
37-
command, executor,
38-
futures::SinkExt,
39-
subscription,
40-
widget::{button, column, row, text},
41-
window, Alignment, Application, Command, Element, Length, Subscription, Theme,
42-
};
43-
4444
impl Application for ProgressInfo {
4545
type Executor = executor::Default;
4646
type Flags = (PathBuf, PathBuf, AppState);

flatrun/src/main.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::{
33
env, fs,
44
io::{self, BufRead, BufReader},
55
path::{Path, PathBuf},
6-
process::{self, Stdio},
6+
process::Stdio,
77
};
88

99
use ashpd::{
@@ -91,12 +91,12 @@ enum FlatrunCommand {
9191
#[arg(short, long)]
9292
bundle_path: String,
9393
},
94-
/// Download an app from a remote (Flathub by default)
95-
Download {
96-
/// App id for app to download (e.g. com.visualstudio.code)
97-
#[arg(short, long)]
98-
appid: String,
99-
},
94+
// /// Download an app from a remote (Flathub by default)
95+
// Download {
96+
// /// App id for app to download (e.g. com.visualstudio.code)
97+
// #[arg(short, long)]
98+
// appid: String,
99+
// },
100100
}
101101

102102
#[async_std::main]
@@ -111,11 +111,11 @@ async fn main() -> Result<(), FlatrunError> {
111111
run_bundle(path_from_uri(bundle_path)?, cli.gui).await?;
112112
Ok(())
113113
}
114-
Some(FlatrunCommand::Download { appid }) => {
115-
let (temp_repo, deps_repo) = get_repos()?;
116-
log::info!("temp_repo: {:?}, deps_repo: {:?}", temp_repo, deps_repo);
117-
Ok(())
118-
}
114+
// Some(FlatrunCommand::Download { appid }) => {
115+
// let (temp_repo, deps_repo) = get_repos()?;
116+
// log::info!("temp_repo: {:?}, deps_repo: {:?}", temp_repo, deps_repo);
117+
// Ok(())
118+
// }
119119
None => {
120120
let path = get_file_from_chooser().await?;
121121
run_bundle(path, cli.gui).await?;

0 commit comments

Comments
 (0)