Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
sop committed Sep 4, 2020
1 parent f850b38 commit dbdc6a6
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 67 deletions.
120 changes: 65 additions & 55 deletions Cargo.lock

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

28 changes: 20 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,29 +1,41 @@
[package]
name = "wslscript"
description = "Shell script handler for WSL."
version = "0.5.0"
version = "0.6.0"
authors = ["Joni Eskelinen <jonieske@gmail.com>"]
edition = "2018"

[dependencies]
failure = "^0.1.5"
num-derive = "^0.2.5"
num-traits = "^0.2.8"
failure = "^0.1.8"
num-derive = "^0.3.2"
num-traits = "^0.2.12"
shell32-sys = "^0.1.2"
widestring = "^0.4.0"
wchar = "^0.5.0"
widestring = "^0.4.2"
wchar = "^0.6.1"
guid-create = "^0.1.1"

[dependencies.winapi]
version = "^0.3.7"
version = "^0.3.9"
features = ["winuser", "winbase", "errhandlingapi", "commctrl", "processenv", "shellapi"]

[dependencies.winreg]
version = "^0.6.0"
version = "^0.7.0"
features = ["transactions"]

[build-dependencies]
winres = "^0.1.11"
toml = "^0.5"
serde = "^1"
serde_derive = "^1"
chrono = "^0.4"

[profile.release]
lto = "fat"
codegen-units = 1
panic = "abort"

[profile.release.package."*"]
opt-level = 3
debug = false
debug-assertions = false
codegen-units = 1
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2019 Joni Eskelinen
Copyright (c) 2019 - 2020 Joni Eskelinen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Note that Drag & Drop handler may not work until reboot.

## TODO

- [x] WSL distro selection
- [ ] Optionally register for all users

## License
Expand Down
8 changes: 6 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,15 @@ fn compile_resources(cargo: &Cargo) {
let manifest_path = PathBuf::from(env::var("OUT_DIR").unwrap()).join("manifest.xml");
let mut f = File::create(manifest_path.clone()).unwrap();
f.write_all(get_manifest(cargo).as_bytes()).unwrap();
let now = chrono::Local::now();
winres::WindowsResource::new()
.set_manifest_file(manifest_path.to_str().unwrap())
.set_icon_with_id(icon.to_str().unwrap(), "app")
.set("InternalName", "wslscript.exe")
.set("LegalCopyright", "Joni Eskelinen © 2019")
.set("InternalName", &format!("{}.exe", cargo.package.name))
.set(
"LegalCopyright",
&format!("Joni Eskelinen © {}", now.format("%Y")),
)
.compile()
.unwrap();
}
Expand Down

0 comments on commit dbdc6a6

Please sign in to comment.