Skip to content

Commit

Permalink
new leadman
Browse files Browse the repository at this point in the history
  • Loading branch information
ahqsoftwares committed Nov 28, 2024
1 parent 8688fc0 commit 6145986
Show file tree
Hide file tree
Showing 36 changed files with 918 additions and 583 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,6 @@ jobs:
- target: aarch64-unknown-linux-gnu
runner: ubuntu-22.04

# - target: x86_64-unknown-netbsd
# runner: ubuntu-latest

# - target: x86_64-unknown-freebsd
# runner: ubuntu-latest

- target: x86_64-apple-darwin
runner: macos-latest

Expand Down
10 changes: 5 additions & 5 deletions lead/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ path = "./src/main.rs"

[dependencies]
lead_lang_interpreter = { path = "../interpreter" }
inquire = "0.7.5"
clap = { version = "4.5.7", features = ["derive"] }
serde = { version = "1.0.203", features = ["derive"] }
serde_json = "1.0.117"
libloading = "0.8.4"
inquire = "0.7"
clap = { version = "4", features = ["derive"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
libloading = "0.8"
2 changes: 1 addition & 1 deletion lead/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fn main() {
#[cfg(unix)]
let file = "lead_docs";

let file = format!("{}/{}", home, file);
let file = format!("{}/versions/{}/{}", home, env!("CARGO_PKG_VERSION"), file);

std::process::Command::new(file).spawn().unwrap().wait().unwrap();
}
Expand Down
18 changes: 0 additions & 18 deletions lead_init_old/Cargo.toml

This file was deleted.

45 changes: 0 additions & 45 deletions lead_init_old/src/main.rs

This file was deleted.

68 changes: 0 additions & 68 deletions lead_init_old/src/utils/mod.rs

This file was deleted.

12 changes: 0 additions & 12 deletions lead_init_old/src/utils/unix/mod.rs

This file was deleted.

38 changes: 0 additions & 38 deletions lead_init_old/src/utils/windows/mod.rs

This file was deleted.

28 changes: 19 additions & 9 deletions leadman/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,28 +1,38 @@
[package]
name = "leadman"
version = "0.0.0-dev-lead-lang"
description = "The Lead Version Manager"
edition = "2021"
publish = false
authors = ["AHQ", "The AHQ Softwares' Lead lang Team"]
license = "MIT"
rust-version = "1.81"

[dependencies]
chalk_rs = "1.0.1"
chrono = "0.4.38"
dirs = "5.0.1"
fs_extra = "1.3.0"
indicatif = "0.17.9"
inquire = { version = "0.7.5", default-features = false, features = [
chalk_rs = "1"
chrono = "0.4"
dirs = "5"
indicatif = "0.17"
inquire = { version = "0.7", default-features = false, features = [
"console",
"fuzzy",
"one-liners",
"macros",
] }
reqwest = { version = "0.12.9", default-features = false, features = [
reqwest = { version = "0.12", default-features = false, features = [
"json",
"rustls-tls",
] }
serde = { version = "1.0.215", features = ["derive"] }
tokio = { version = "1.41.1", features = ["rt", "rt-multi-thread", "macros"] }
serde = { version = "1", features = ["derive"] }
tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros"] }
zip = "2"

[target.'cfg(windows)'.dependencies]
winreg = "0.52.0"

[target.'cfg(windows)'.build-dependencies]
tauri-winres = "0.1.1"

[package.metadata.tauri-winres]
OriginalFilename = "leadman.exe"
LegalCopyright = "Copyright © 2024 - The AHQ Softwares' Lead lang Team"
10 changes: 9 additions & 1 deletion leadman/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,12 @@ fn main() {
let target = env::var("TARGET").unwrap();

println!("cargo::rustc-env=TARGET={target}");
}

#[cfg(windows)]
{
let mut res = tauri_winres::WindowsResource::new();
res.set_icon("icon.ico")
.compile()
.unwrap();
}
}
Binary file added leadman/icon.ico
Binary file not shown.
29 changes: 0 additions & 29 deletions leadman/src/clear/mod.rs

This file was deleted.

Loading

0 comments on commit 6145986

Please sign in to comment.