Skip to content

Commit

Permalink
Merge pull request #43 from nazar-pc/windows-autostart
Browse files Browse the repository at this point in the history
Windows autostart
  • Loading branch information
nazar-pc authored Dec 17, 2023
2 parents b7dee4d + fbfece6 commit ba6aac7
Show file tree
Hide file tree
Showing 8 changed files with 327 additions and 191 deletions.
29 changes: 20 additions & 9 deletions Cargo.lock

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

8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "space-acres"
description = "Space Acres is an opinionated unofficial GUI application for farming on Subspace Network"
license = "0BSD"
version = "0.0.5"
version = "0.0.6"
authors = ["Nazar Mokrynskyi <[email protected]>"]
repository = "https://github.com/nazar-pc/space-acres"
edition = "2021"
Expand All @@ -13,7 +13,7 @@ include = [

# TODO: Menu shortcut will not be generated automatically in case of re-init: https://github.com/volks73/cargo-wix/issues/141
[package.metadata.wix]
product-icon = "res/space-acres.ico"
product-icon = "res/windows/space-acres.ico"
# TODO: This option will not have effect until https://github.com/volks73/cargo-wix/issues/270 is fixed in case of re-init
product-name = "Space Acres"

Expand All @@ -23,6 +23,7 @@ arc-swap = "1.6.0"
async-trait = "0.1.74"
atomic = "0.5.3"
bytesize = "1.3.0"
clap = { version = "4.4.11", features = ["derive"] }
dark-light = "1.0.0"
dirs = "5.0.1"
duct = "0.13.6"
Expand Down Expand Up @@ -68,6 +69,9 @@ tokio = { version = "1.34.0", features = ["fs", "time"] }
tracing = "0.1.40"
tracing-subscriber = "0.3.18"

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

# The list of dependencies below (which can be both direct and indirect dependencies) are crates
# that are suspected to be CPU-intensive, and that are unlikely to require debugging (as some of
# their debug info might be missing) or to require to be frequently recompiled. We compile these
Expand Down
8 changes: 8 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
fn main() {
#[cfg(windows)]
{
let mut res = winres::WindowsResource::new();
res.set_icon("res\\windows\\space-acres.ico");
res.compile().unwrap();
}
}
File renamed without changes.
File renamed without changes
File renamed without changes.
Loading

0 comments on commit ba6aac7

Please sign in to comment.