Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/callmeclover/jerry
Browse files Browse the repository at this point in the history
  • Loading branch information
callmeclover committed May 30, 2024
2 parents bef4ffa + 447207e commit d000414
Show file tree
Hide file tree
Showing 12 changed files with 185 additions and 83 deletions.
54 changes: 35 additions & 19 deletions Cargo.lock

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

7 changes: 3 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ edition = "2021"
keywords = ["robot", "automation", "malware", "jerry"]
categories = ["robot", "automation", "malware"]

[package.metadata.winres]
[package.metadata.winresource]
LegalCopyright = "Copyright © callmeclover 2024"
FileDescription = "stupid robot nuisance"
OriginalFilename = "stupid robot nuisance"

[dependencies]
enigo = "0.2.1"
Expand All @@ -27,7 +27,6 @@ lazy_static = "1.4.0"
dialoguer = "0.11.0"
time = "0.3.31"
chrono = "0.4.31"
ansi_term = "0.12.1"
regex = "1.10.3"
reqwest = { version = "0.12.3", features = ["blocking"] }
cgisf_lib = "0.2.1"
Expand All @@ -48,7 +47,7 @@ version = "0.5.0"
optional = true

[build-dependencies]
winres = "0.1"
winresource = "0.1"

[features]
invisibility = ["dep:daemonize"]
Expand Down
16 changes: 6 additions & 10 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
extern crate winres;
extern crate winresource;

fn main() {
if std::env::var("CARGO_CFG_TARGET_OS").unwrap() != "windows" {
return;
}

if std::env::var("PROFILE").unwrap() == "release" {
let mut res = winres::WindowsResource::new();
if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "windows" {
let mut res = winresource::WindowsResource::new();

res.set_icon("icon.ico").set_language(0x0409);
res.set_icon("resources/icon.ico").set_language(0x0409);

if cfg!(feature = "advanced") {
res.set_manifest_file("manifest_adv.xml");
res.set_manifest_file("resources/manifest_adv.xml");
} else {
res.set_manifest_file("manifest.xml");
res.set_manifest_file("resources/manifest.xml");
}

if let Err(e) = res.compile() {
Expand Down
Binary file added resources/icon.icns
Binary file not shown.
File renamed without changes.
Binary file added resources/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit d000414

Please sign in to comment.