mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-23 03:25:56 +00:00
feat(phase15): release and security hardening, DPAPI key store, probe & protocol hardening, secret redaction, audit and readiness report
This commit is contained in:
1 parent
b69fa6b867
commit
51e0f136d6
207 files changed
+38235
-7770
No files matched your search
@@ -9,13 +9,35 @@ use std::path::PathBuf;
|
||||
|
||||
fn main() {
|
||||
let a: Vec<String> = std::env::args().skip(1).collect();
|
||||
assert!(a.len() == 4, "usage: docker_install <package folder> <destination> <game data folder> <public key>");
|
||||
assert!(
|
||||
a.len() == 4,
|
||||
"usage: docker_install <package folder> <destination> <game data folder> <public key>"
|
||||
);
|
||||
let registry = Registry::at(std::env::temp_dir().join("coa-docker-install/installs.json"));
|
||||
let t = std::time::Instant::now();
|
||||
let done = install(
|
||||
&Params { source: Source::Dir(PathBuf::from(&a[0])), dest: PathBuf::from(&a[1]), data_dir: PathBuf::from(&a[2]), trusted_key: &a[3], registry: ®istry, cancel: Cancel::default() },
|
||||
&|s| eprintln!(" {:>3}% {} {}", s.percent, s.step, s.detail.unwrap_or_default()),
|
||||
&Params {
|
||||
source: Source::Dir(PathBuf::from(&a[0])),
|
||||
dest: PathBuf::from(&a[1]),
|
||||
data_dir: PathBuf::from(&a[2]),
|
||||
trusted_key: &a[3],
|
||||
registry: ®istry,
|
||||
cancel: Cancel::default(),
|
||||
},
|
||||
&|s| {
|
||||
eprintln!(
|
||||
" {:>3}% {} {}",
|
||||
s.percent,
|
||||
s.step,
|
||||
s.detail.unwrap_or_default()
|
||||
)
|
||||
},
|
||||
)
|
||||
.unwrap_or_else(|e| panic!("install failed: {e}"));
|
||||
println!("installed {} at {} in {:?}", done.version, done.path, t.elapsed());
|
||||
println!(
|
||||
"installed {} at {} in {:?}",
|
||||
done.version,
|
||||
done.path,
|
||||
t.elapsed()
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user